HazeDefaults

Default values for the haze modifiers.

Properties

Link copied to clipboard

Default blur radius. Larger values produce a stronger blur effect.

Link copied to clipboard
const val noiseFactor: Float = 0.15f

Noise factor.

Link copied to clipboard
const val tintAlpha: Float = 0.7f

Default alpha used for the tint color. Used by the tint function.

Functions

Link copied to clipboard
fun style(backgroundColor: Color = Color.Unspecified, tint: Color = tint(backgroundColor), blurRadius: Dp = this.blurRadius, noiseFactor: Float = this.noiseFactor): HazeStyle

Default HazeStyle for usage with Modifier.haze.

Link copied to clipboard
fun tint(color: Color): Color

Default builder for the 'tint' color. Transforms the provided color.