ecolor

Function gamma_from_linear

Source
pub fn gamma_from_linear(linear: f32) -> f32
Expand description

linear [0, 1] -> gamma [0, 1] (not clamped). Works for numbers outside this range (e.g. negative numbers).