Skip to main content

contrast

Function contrast 

Source
pub fn contrast(a: Color, b: Color) -> f32
Expand description

The WCAG contrast ratio between two colours, from 1 to 21.