lighter

fun lighter(tone: Double, ratio: Double): Double
fun lighter(tone: Double, ratio: Float): Float

Returns T in HCT, L* in Lab* >= tone parameter that ensures ratio with input T/L*. Returns -1 if ratio cannot be achieved.

Return

T in HCT, L* in Lab* >= tone parameter that ensures ratio with input T/L*.

Parameters

tone

Tone return value must contrast with.

ratio

Desired contrast ratio of return value and tone parameter.