Function palette::contrast_ratio [−][src]
pub fn contrast_ratio<T>(luma1: T, luma2: T) -> T where
T: Component + FromF64 + Add<Output = T> + Div<Output = T>,
Expand description
Calculate the ratio between two luma
values.