by @alexstyl
✉️ Leave your feedback

← Back to Compose UI

drawOpacity

Modifier
in
Compose UI
. Since 0.1.0-dev15

Overview

Examples

Community Notes

Draw content with modified alpha that may be less than 1.

@param opacity the fraction of children's alpha value.

Overloads

drawOpacity

@Deprecated(
    "Use alpha instead",
    ReplaceWith("alpha(opacity)", "androidx.compose.ui.draw")
)
fun Modifier.drawOpacity(opacity: Float)

Parameters

NameDescription
opacitythe fraction of children's alpha value
Next ComponentAndroidView