style

fun style(backgroundColor: Color, tint: HazeTint = tint(backgroundColor), blurRadius: Dp = this.blurRadius, noiseFactor: Float = this.noiseFactor): HazeStyle

Default HazeStyle for usage with Modifier.hazeSource.

Parameters

backgroundColor

Color to draw behind the blurred content. Ideally should be opaque so that the original content is not visible behind. Typically this would be MaterialTheme.colorScheme.surface or similar.

tint

Default color to tint the blurred content. Should be translucent, otherwise you will not see the blurred content.

blurRadius

Radius of the blur.

noiseFactor

Amount of noise applied to the content, in the range 0f to 1f. Anything outside of that range will be clamped.