toContrastColor

fun toContrastColor(threshold: Int = 75): Color

Determine contrast background color for any input color

Return

output contrast color

Parameters

threshold

brightness (luminance) threshold