[−][src]Function graphics::color::gamma_srgb_to_linear
pub fn gamma_srgb_to_linear(c: Color) -> Color
Converts gamma (brightness) from sRGB to linear color space.
sRGB is the default color space for image editors, pictures, internet etc. Linear gamma yields better results when doing math with colors.