LinearGradient

data class LinearGradient(val steps: Int = STEPS_AUTO_BALANCED, val easing: Easing = EaseIn, val start: Offset = Offset.Zero, val startIntensity: Float = 0.0f, val end: Offset = Offset.Infinite, val endIntensity: Float = 1.0f) : HazeProgressive

A linear gradient effect.

You may wish to use the convenience builder functions provided in horizontalGradient and verticalGradient for more common use cases.

Parameters

steps
easing
  • The easing function to use when applying the effect. Defaults to a linear easing effect.

start
  • Starting position of the gradient. Defaults to Offset.Zero which represents the top-left of the drawing area.

startIntensity
  • The intensity of the haze effect at the start, in the range 0f..1f.

end
  • Ending position of the gradient. Defaults to Offset.Infinite which represents the bottom-right of the drawing area.

endIntensity
  • The intensity of the haze effect at the end, in the range 0f..1f

Constructors

Link copied to clipboard
constructor(steps: Int = STEPS_AUTO_BALANCED, easing: Easing = EaseIn, start: Offset = Offset.Zero, startIntensity: Float = 0.0f, end: Offset = Offset.Infinite, endIntensity: Float = 1.0f)

Properties

Link copied to clipboard
Link copied to clipboard
val end: Offset
Link copied to clipboard
val endIntensity: Float = 1.0f
Link copied to clipboard
Link copied to clipboard
val startIntensity: Float = 0.0f
Link copied to clipboard
open override val steps: Int