ColorSpaces

object ColorSpaces


Summary

Public functions

ColorSpace?
match(toXYZD50: FloatArray, function: TransferParameters)

Returns a ColorSpaces instance of ColorSpace that matches the specified RGB to CIE XYZ transform and transfer functions.

Public properties

Rgb

RGB color space ACES standardized as SMPTE ST 2065-1:2012.

Rgb

RGB color space ACEScg standardized as Academy S-2014-004.

Rgb

RGB color space Adobe RGB (1998).

Rgb

RGB color space BT.2020 standardized as Rec.

Rgb

RGB color space BT.709 standardized as Rec.

ColorSpace

Lab color space CIE Lab*.

ColorSpace

XYZ color space CIE XYZ.

Rgb

RGB color space DCI-P3 standardized as SMPTE RP 431-2-2007.

Rgb

RGB color space Display P3 based on SMPTE RP 431-2-2007 and IEC 61966-2.1:1999.

Rgb

RGB color space scRGB-nl standardized as IEC 61966-2-2:2003.

Rgb

RGB color space scRGB standardized as IEC 61966-2-2:2003.

Rgb

RGB color space sRGB standardized as IEC 61966-2.1:1999.

Rgb

RGB color space NTSC, 1953 standard.

Rgb

RGB color space ProPhoto RGB standardized as ROMM RGB ISO 22028-2:2013.

Rgb

RGB color space SMPTE C.

Rgb

RGB color space sRGB standardized as IEC 61966-2.1:1999.

Public functions

match

fun match(toXYZD50: FloatArray, function: TransferParameters): ColorSpace?

Returns a ColorSpaces instance of ColorSpace that matches the specified RGB to CIE XYZ transform and transfer functions. If no instance can be found, this method returns null.

The color transform matrix is assumed to target the CIE XYZ space a D50 standard illuminant.

Parameters
toXYZD50: FloatArray

3x3 column-major transform matrix from RGB to the profile connection space CIE XYZ as an array of 9 floats, cannot be null

function: TransferParameters

Parameters for the transfer functions

Returns
ColorSpace?

A non-null ColorSpace if a match is found, null otherwise

Public properties

Aces

val AcesRgb

RGB color space ACES standardized as SMPTE ST 2065-1:2012. See details on ACES color space

Acescg

val AcescgRgb

RGB color space ACEScg standardized as Academy S-2014-004. See details on ACEScg color space

AdobeRgb

val AdobeRgbRgb

RGB color space Adobe RGB (1998). See details on Adobe RGB (1998) color space

Bt2020

val Bt2020Rgb

RGB color space BT.2020 standardized as Rec. ITU-R BT.2020-1. See details on BT.2020 color space

Bt709

val Bt709Rgb

RGB color space BT.709 standardized as Rec. ITU-R BT.709-5. See details on BT.709 color space

CieLab

val CieLabColorSpace

Lab color space CIE Lab*. This color space uses CIE XYZ D50 as a profile conversion space.

| Property                | Value                                                   |
|-------------------------|---------------------------------------------------------|
| Name | Generic L*a*b* |
| CIE standard illuminant | [D50][Illuminant.D50] |
| Range | (L: `[0.0, 100.0]`, a: `[-128, 128]`, b: `[-128, 128]`) |

CieXyz

val CieXyzColorSpace

XYZ color space CIE XYZ. This color space assumes standard illuminant D50 as its white point.

| Property                | Value                 |
|-------------------------|-----------------------|
| Name | Generic XYZ |
| CIE standard illuminant | [D50][Illuminant.D50] |
| Range | `[-2.0, 2.0]` |

DciP3

val DciP3Rgb

RGB color space DCI-P3 standardized as SMPTE RP 431-2-2007. See details on DCI-P3 color space

DisplayP3

val DisplayP3Rgb

RGB color space Display P3 based on SMPTE RP 431-2-2007 and IEC 61966-2.1:1999. See details on Display P3 color space

ExtendedSrgb

val ExtendedSrgbRgb

RGB color space scRGB-nl standardized as IEC 61966-2-2:2003. See details on Extended sRGB color space

LinearExtendedSrgb

val LinearExtendedSrgbRgb

RGB color space scRGB standardized as IEC 61966-2-2:2003. See details on Linear Extended sRGB color space

LinearSrgb

val LinearSrgbRgb

RGB color space sRGB standardized as IEC 61966-2.1:1999. See details on Linear sRGB color space

Ntsc1953

val Ntsc1953Rgb

RGB color space NTSC, 1953 standard. See details on NTSC 1953 color space

ProPhotoRgb

val ProPhotoRgbRgb

RGB color space ProPhoto RGB standardized as ROMM RGB ISO 22028-2:2013. See details on ProPhoto RGB color space

SmpteC

val SmpteCRgb

RGB color space SMPTE C. See details on SMPTE C color space

Srgb

val SrgbRgb

RGB color space sRGB standardized as IEC 61966-2.1:1999. See details on sRGB color space