This contains the gamma correction.
Naming convention:
sRGB: Gamma distorted values
RGB: linear values.
Source: https://www.w3.org/Graphics/Color/srgb
This implementation is consistent in round trip sRGB -> RGB and back (errors below 1e-16).
The java internal implementation is much less consistent (errors up to 0.06!)
This contains the gamma correction. Naming convention: sRGB: Gamma distorted values RGB: linear values.
Source: https://www.w3.org/Graphics/Color/srgb
This implementation is consistent in round trip sRGB -> RGB and back (errors below 1e-16). The java internal implementation is much less consistent (errors up to 0.06!)