[−][src]Function colorskill::change_color_lightness
pub fn change_color_lightness(
t: (u8, u8, u8),
darker: bool,
amount: f64
) -> (u8, u8, u8)
Turns a color darker or lighter.
The amount represents a HSL lightness percentage to increase or decrease.
The bigger the amount, the more it gets darker or lighter.
Example
use colorskill::change_color_lightness; let c = change_color_lightness((43, 56, 84), true, 20.0);