Converts an RGB color to linear space; the conversion depends on type.
Converts an RGBA color to linear space; the conversion depends on type.
Converts an sRGB color, RGB or RGBA (alpha left unmodified), to linear space.