Function rasterize::linear_to_srgb[][src]

pub fn linear_to_srgb(x0: f32) -> f32

Convert Linear RGB color component into a SRGB color component.

It was hard to optimize this function, even current version is slow because of the conditional jump. Lookup table is not working here as well it should be at least 4K in size an not cache friendly.