Skip to main content

color_distance

Function color_distance 

pub fn color_distance(a: (u8, u8, u8), b: (u8, u8, u8)) -> f32
Expand description

How far apart two colours are, weighted the way an eye weights them (the “redmean” approximation).