LinearGradient

constructor(easing: Easing = EaseIn, start: Offset = Offset.Zero, startIntensity: Float = 0.0f, end: Offset = Offset.Infinite, endIntensity: Float = 1.0f, preferPerformance: Boolean = false)

Parameters

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

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

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

preferPerformance
  • Whether Haze should prefer performance (when true), or quality (when false). See above for more information.