surfaceColorAtElevation

Computes the surface color at a given elevation using the current MaterialTheme's color scheme.

This function adjusts the color based on the elevation provided, applying tonal elevation if enabled in the MaterialTheme.

Return

A Color that represents the surface color at the given elevation.

Parameters

color

The base Color to adjust based on elevation.

elevation

The Dp value representing the elevation for the surface.