map_color

Function map_color 

Source
pub fn map_color(color: [f32; 4], f: impl Fn(f32) -> f32) -> [f32; 4]
Expand description

Applies a function to the RGB components of a color. The alpha component isn’t changed.