[−][src]Function colorskill::get_color_lightness
pub fn get_color_lightness(t: (u8, u8, u8)) -> f64
Converts the RGB to a HSL and returns the lightness value.
Example
use colorskill::get_color_lightness; let lightness = get_color_lightness((34, 84, 39));