rainbow_shared
pub fn map_color(color: [f32; 4], f: impl Fn(f32) -> f32) -> [f32; 4]
Applies a function to the RGB components of a color. The alpha component isn't changed.