toLinear
Converts an RGB color from the specified color space to linear RGB.
Return
Linear RGB as a 3-element array R, G, B
Parameters
The source color space (sRGB or LINEAR)
Red channel value 0, 1
Green channel value 0, 1
Blue channel value 0, 1
Converts an RGB color from the specified color space to linear RGB.
Return
Linear RGB as a 3-element array R, G, B
Parameters
The source color space (sRGB or LINEAR)
RGB color as a 3-element array R, G, B
Converts an RGBA color from the specified color space to linear RGB.
Return
Linear RGB with alpha as a 4-element array R, G, B, A
Parameters
The source color space (sRGB, LINEAR, PREMULTIPLIED_SRGB, PREMULTIPLIED_LINEAR)
Red channel value 0, 1
Green channel value 0, 1
Blue channel value 0, 1
Alpha channel value 0, 1
Converts an RGBA color from the specified color space to linear RGB.
Return
Linear RGB with alpha as a 4-element array R, G, B, A
Parameters
The source color space (sRGB, LINEAR, PREMULTIPLIED_SRGB, PREMULTIPLIED_LINEAR)
RGBA color as a 4-element array R, G, B, A
Converts an RGB color from the specified color space to linear RGB using the specified conversion quality.
Return
Linear RGB as a 3-element array R, G, B
Parameters
The conversion method (ACCURATE or FAST)
RGB color as a 3-element array R, G, B
Converts an RGB color from the specified color space to linear RGB.
Return
Linear RGB as a 3-element array R, G, B
Parameters
The source color space (sRGB or LINEAR)
Red channel value 0, 1
Green channel value 0, 1
Blue channel value 0, 1
Converts an RGB color from the specified color space to linear RGB.
Return
Linear RGB as a 3-element array R, G, B
Parameters
The source color space (sRGB or LINEAR)
RGB color as a 3-element array R, G, B
Converts an RGBA color from the specified color space to linear RGB.
Return
Linear RGB with alpha as a 4-element array R, G, B, A
Parameters
The source color space (sRGB, LINEAR, PREMULTIPLIED_SRGB, PREMULTIPLIED_LINEAR)
Red channel value 0, 1
Green channel value 0, 1
Blue channel value 0, 1
Alpha channel value 0, 1
Converts an RGBA color from the specified color space to linear RGB.
Return
Linear RGB with alpha as a 4-element array R, G, B, A
Parameters
The source color space (sRGB, LINEAR, PREMULTIPLIED_SRGB, PREMULTIPLIED_LINEAR)
RGBA color as a 4-element array R, G, B, A
Converts an RGB color from the specified color space to linear RGB using the specified conversion quality.
Return
Linear RGB as a 3-element array R, G, B
Parameters
The conversion method (ACCURATE or FAST)
RGB color as a 3-element array R, G, B
Converts an RGB color from the specified color space to linear RGB.
Return
Linear RGB as a 3-element array R, G, B
Parameters
The source color space (sRGB or LINEAR)
Red channel value 0, 1
Green channel value 0, 1
Blue channel value 0, 1
Converts an RGB color from the specified color space to linear RGB.
Return
Linear RGB as a 3-element array R, G, B
Parameters
The source color space (sRGB or LINEAR)
RGB color as a 3-element array R, G, B
Converts an RGBA color from the specified color space to linear RGB.
Return
Linear RGB with alpha as a 4-element array R, G, B, A
Parameters
The source color space (sRGB, LINEAR, PREMULTIPLIED_SRGB, PREMULTIPLIED_LINEAR)
Red channel value 0, 1
Green channel value 0, 1
Blue channel value 0, 1
Alpha channel value 0, 1
Converts an RGBA color from the specified color space to linear RGB.
Return
Linear RGB with alpha as a 4-element array R, G, B, A
Parameters
The source color space (sRGB, LINEAR, PREMULTIPLIED_SRGB, PREMULTIPLIED_LINEAR)
RGBA color as a 4-element array R, G, B, A
Converts an RGB color from the specified color space to linear RGB using the specified conversion quality.
Return
Linear RGB as a 3-element array R, G, B
Parameters
The conversion method (ACCURATE or FAST)
RGB color as a 3-element array R, G, B
Converts an RGB color from the specified color space to linear RGB.
Return
Linear RGB as a 3-element array R, G, B
Parameters
The source color space (sRGB or LINEAR)
Red channel value 0, 1
Green channel value 0, 1
Blue channel value 0, 1
Converts an RGB color from the specified color space to linear RGB.
Return
Linear RGB as a 3-element array R, G, B
Parameters
The source color space (sRGB or LINEAR)
RGB color as a 3-element array R, G, B
Converts an RGBA color from the specified color space to linear RGB.
Return
Linear RGB with alpha as a 4-element array R, G, B, A
Parameters
The source color space (sRGB, LINEAR, PREMULTIPLIED_SRGB, PREMULTIPLIED_LINEAR)
Red channel value 0, 1
Green channel value 0, 1
Blue channel value 0, 1
Alpha channel value 0, 1
Converts an RGBA color from the specified color space to linear RGB.
Return
Linear RGB with alpha as a 4-element array R, G, B, A
Parameters
The source color space (sRGB, LINEAR, PREMULTIPLIED_SRGB, PREMULTIPLIED_LINEAR)
RGBA color as a 4-element array R, G, B, A
Converts an RGB color from the specified color space to linear RGB using the specified conversion quality.
Return
Linear RGB as a 3-element array R, G, B
Parameters
The conversion method (ACCURATE or FAST)
RGB color as a 3-element array R, G, B
Converts an RGB color from the specified color space to linear RGB.
Return
Linear RGB as a 3-element array R, G, B
Parameters
The source color space (sRGB or LINEAR)
Red channel value 0, 1
Green channel value 0, 1
Blue channel value 0, 1
Converts an RGB color from the specified color space to linear RGB.
Return
Linear RGB as a 3-element array R, G, B
Parameters
The source color space (sRGB or LINEAR)
RGB color as a 3-element array R, G, B
Converts an RGBA color from the specified color space to linear RGB.
Return
Linear RGB with alpha as a 4-element array R, G, B, A
Parameters
The source color space (sRGB, LINEAR, PREMULTIPLIED_SRGB, PREMULTIPLIED_LINEAR)
Red channel value 0, 1
Green channel value 0, 1
Blue channel value 0, 1
Alpha channel value 0, 1
Converts an RGBA color from the specified color space to linear RGB.
Return
Linear RGB with alpha as a 4-element array R, G, B, A
Parameters
The source color space (sRGB, LINEAR, PREMULTIPLIED_SRGB, PREMULTIPLIED_LINEAR)
RGBA color as a 4-element array R, G, B, A
Converts an RGB color from the specified color space to linear RGB using the specified conversion quality.
Return
Linear RGB as a 3-element array R, G, B
Parameters
The conversion method (ACCURATE or FAST)
RGB color as a 3-element array R, G, B