HazeProgressive

sealed interface HazeProgressive

Parameters for applying a progressive visual effect.

Inheritors

Types

Link copied to clipboard
value class Brush(val brush: Brush) : HazeProgressive

A progressive effect which is derived by using the provided Brush as an alpha mask.

Link copied to clipboard
object Companion

Convenience factories for common progressive effects.

Link copied to clipboard
data class LinearGradient(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.

Link copied to clipboard
class RadialGradient(val easing: Easing = EaseIn, val center: Offset = Offset.Unspecified, val centerIntensity: Float = 1.0f, val radius: Float = Float.POSITIVE_INFINITY, val radiusIntensity: Float = 0.0f) : HazeProgressive

A radial gradient effect.

Functions

Link copied to clipboard
fun HazeProgressive.asBrush(numStops: Int = 20): Brush

Converts this progressive effect into an alpha-mask Brush with numStops samples.