Skip to main content

legible

Function legible 

Source
pub fn legible(text: Hsla, plate: Hsla, floor: f32) -> Hsla
Expand description

The color to draw text (which may be translucent) in over the opaque plate: text where it reads at floor there, else text with its lightness inverted where that does, else whichever of black and white reads better.