Skip to main content

contrast_ratio

Function contrast_ratio 

Source
pub fn contrast_ratio(a: Color32, b: Color32) -> f32
Expand description

Contrast ratio between two opaque colors, from 1.0 to 21.0.