HazeBlurDefaults

Default values for the BlurVisualEffect.

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

Default values for BlurVisualEffect.blurEnabled. This function only returns true on platforms where we know blurring works reliably.

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

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