horizontal Gradient
fun horizontalGradient(easing: Easing = EaseIn, startX: Float = 0.0f, startIntensity: Float = 0.0f, endX: Float = Float.POSITIVE_INFINITY, endIntensity: Float = 1.0f, preferPerformance: Boolean = false): HazeProgressive.LinearGradient
A horizontal gradient effect.
Parameters
easing
The easing function to use when applying the effect. Defaults to a linear easing effect.
start X
Starting x position of the horizontal gradient. Defaults to 0 which represents the left of the drawing area
start Intensity
The intensity of the haze effect at the start, in the range
0f..1f
end X
Ending x position of the horizontal gradient. Defaults to Float.POSITIVE_INFINITY which represents the right of the drawing area.
end Intensity
The intensity of the haze effect at the end, in the range
0f..1f.
prefer Performance
Whether Haze should prefer performance (when true), or quality (when false). See HazeProgressive.LinearGradient's documentation for more information.