Package-level declarations

Types

Link copied to clipboard
data class RainfallStyle(val density: Float = 0.4f, val colors: List<Color> = listOf(Color(0xFFB3C7DD)), val minLength: Dp = 10.dp, val maxLength: Dp = 22.dp, val thickness: Dp = 1.5.dp, val speed: Float = 1.0f, val wind: Float = 0.15f, val gusts: Float = 0.5f, val showers: Float = 0.35f, val splashes: Boolean = true, val splashSize: Dp = 7.dp, val minAlpha: Float = 0.25f, val maxAlpha: Float = 0.6f, val maxDrops: Int = 180)

Appearance and motion of rainfall.

Functions

Link copied to clipboard
fun Modifier.rainfall(style: RainfallStyle = RainfallStyle(), enabled: Boolean = true): Modifier

Draws falling rain over this element's content, the way snowfall draws snow: streaks at different depths that lean with gusting wind, thicken and thin in showers, and splash where they land.