glassPaint
fun Color.glassPaint(blurRadius: Double, opacity: Float = if (this.opacity < 1f) this.opacity else 0.25f): FrostedGlassPaint
Creates a new FrostedGlassPaint from the given Color.
Parameters
blurRadius
of the paint
opacity
of the paint, defaults to 0.25
if the color is fully opaque
Creates a new FrostedGlassPaint from the given Color.
The paint will have a blurRadius of 10.0
and a default opacity if the color is fully opaque.