← Back to Compose UI
drawOpacity
Modifier
in
Compose UI
. Since 0.1.0-dev15Overview
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
Name | Description |
---|---|
opacity | the fraction of children's alpha value |
Next ComponentAndroidView →