Skip to main content

ink_of

Function ink_of 

Source
pub fn ink_of(rgb: Rgb) -> Ink
Expand description

The ink a colour is drawn in: the ink it is the code of, or else white if it is at least half bright (in the eye’s weighting of red, green and blue), black if not.