Package com.google.android.filament
Class View.VignetteOptions
- java.lang.Object
-
- com.google.android.filament.View.VignetteOptions
-
- Enclosing class:
- View
public static class View.VignetteOptions extends java.lang.ObjectOptions to control the vignetting effect.
-
-
Field Summary
Fields Modifier and Type Field Description float[]colorColor of the vignette effect as a linear RGBA color.booleanenabledEnables or disables the vignette effect.floatfeatherSoftening amount of the vignette effect, between 0 and 1.floatmidPointHigh values restrict the vignette closer to the corners, between 0 and 1.floatroundnessControls the shape of the vignette, from a rounded rectangle (0.0), to an oval (0.5), to a circle (1.0).
-
Constructor Summary
Constructors Constructor Description VignetteOptions()
-
-
-
Field Detail
-
midPoint
public float midPoint
High values restrict the vignette closer to the corners, between 0 and 1.
-
roundness
public float roundness
Controls the shape of the vignette, from a rounded rectangle (0.0), to an oval (0.5), to a circle (1.0). The value must be between 0 and 1.
-
feather
public float feather
Softening amount of the vignette effect, between 0 and 1.
-
color
@NonNull @Size(min=4L) public float[] color
Color of the vignette effect as a linear RGBA color. The alpha channel is currently ignored.
-
enabled
public boolean enabled
Enables or disables the vignette effect.
-
-