getContrastColor

fun getContrastColor(backgroundColor: Color): Color

Method used to get the color to use on a specified backgroundColor based on its luminance

Return

the correct color based on the background luminance as Color

Parameters

backgroundColor

The background color where the text is on top