vertical Gradient
fun verticalGradient(steps: Int = STEPS_AUTO_BALANCED, easing: Easing = EaseIn, startY: Float = 0.0f, startIntensity: Float = 0.0f, endY: Float = Float.POSITIVE_INFINITY, endIntensity: Float = 1.0f): HazeProgressive.LinearGradient
A vertical gradient effect.
Parameters
steps
The number of steps in the effect. See HazeProgressive.steps for information.
easing
The easing function to use when applying the effect. Defaults to a linear easing effect.
start Y
Starting x position of the horizontal gradient. Defaults to 0 which represents the top of the drawing area.
start Intensity
The intensity of the haze effect at the start, in the range
0f..1f.
end Y
Ending x position of the horizontal gradient. Defaults to Float.POSITIVE_INFINITY which represents the bottom of the drawing area.
end Intensity
The intensity of the haze effect at the end, in the range
0f..1f