Skip to content

suggest content color for

milan jurkulák edited this page May 21, 2024 · 3 revisions

//tvlib/org.mjdev.tvlib.ui.toolkit/suggestContentColorFor

suggestContentColorFor

[androidJvm]
fun suggestContentColorFor(backgroundColor: Color): Color

Suggest Color Generates a color that can be represented on provided background Color based on the luminance

Return

Color.White if luminance < 0.3 otherwise Color.Black

Parameters

androidJvm

backgroundColor - provided background color
Clone this wiki locally