linear [0, 1] (not clamped). Works for numbers outside this range (e.g. negative numbers).">epaint::color::linear_from_gamma - Rust
[go: up one dir, main page]

Function epaint::color::linear_from_gamma[][src]

pub fn linear_from_gamma(gamma: f32) -> f32

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