Skip to main content

legible_on

Function legible_on 

Source
pub fn legible_on(plate: Hsla, a: Hsla, b: Hsla) -> Hsla
Expand description

Whichever of a and b has the higher contrast ratio against plate, a on a tie.