androidx.compose.material3

surfaceColorAtElevation

Function

No hand-written docs yet.

Computes the surface tonal color at different elevation levels e.g. surface1 through surface5.

Parameters

fun ColorScheme.surfaceColorAtElevation(elevation: Dp): Color

elevation: DpRequired

Elevation value used to compute alpha of the color overlay layer.

Library docs

Computes the surface tonal color at different elevation levels e.g. surface1 through surface5.