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

Function epaint::color::gamma_from_linear[][src]

pub fn gamma_from_linear(linear: f32) -> f32

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