ecolor

Function linear_from_gamma

Source
pub fn linear_from_gamma(gamma: f32) -> f32
Expand description

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