Function cosmic::cosmic_theme::palette::contrast_ratio
source ยท pub fn contrast_ratio<T>(luma1: T, luma2: T) -> T
๐Deprecated since 0.7.2: replaced by
LinLuma::relative_contrast
, via Wcag21RelativeContrast
Expand description
Calculate the ratio between two luma
values.