darker

open fun darker(tone: Double, ratio: Double): Double

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

Parameters

tone

Tone return value must contrast with.

ratio

Desired contrast ratio of return value and tone parameter.