surfaceColorAtElevation

fun SparkColors.surfaceColorAtElevation(elevation: ERROR CLASS: Symbol not found for Dp): ERROR CLASS: Symbol not found for Color

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

Return

the SparkColors.surface color with an alpha of the surface tint color overlaid on top of it.

Parameters

elevation

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