ColorSpaces


Summary

Public functions

ColorSpace?
match(toXYZD50: @Size(value = 9) FloatArray, function: TransferParameters)

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

Cmn

Public properties

Rgb

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

Cmn
Rgb

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

Cmn
Rgb

RGB color space Adobe RGB (1998).

Cmn
Rgb

RGB color space BT.2020 standardized as Rec.

Cmn
Rgb

RGB color space BT.2100 standardized as Hybrid Log Gamma encoding

Cmn
Rgb

RGB color space BT.2100 standardized as Perceptual Quantizer encoding

Cmn
Rgb

RGB color space BT.709 standardized as Rec.

Cmn
ColorSpace

Lab color space CIE Lab*.

Cmn
ColorSpace

XYZ color space CIE XYZ.

Cmn
Rgb

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

Cmn
Rgb

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

Cmn
Rgb

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

Cmn
Rgb

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

Cmn
Rgb

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

Cmn
Rgb

RGB color space NTSC, 1953 standard.

Cmn
ColorSpace

Lab color space Oklab.

Cmn
Rgb

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

Cmn
Rgb

RGB color space SMPTE C.

Cmn
Rgb

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

Cmn

Public functions

match

fun match(toXYZD50: @Size(value = 9) 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: @Size(value = 9) 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

Bt2020Hlg

val Bt2020HlgRgb

RGB color space BT.2100 standardized as Hybrid Log Gamma encoding

| Property                | Value                                                   |
|-------------------------|---------------------------------------------------------|
| Name | Hybrid Log Gamma encoding |
| CIE standard illuminant | [D65][Illuminant.D65] |
| Range | `[0.0, 1.0]` |

Bt2020Pq

val Bt2020PqRgb

RGB color space BT.2100 standardized as Perceptual Quantizer encoding

| Property                | Value                                                   |
|-------------------------|---------------------------------------------------------|
| Name | Perceptual Quantizer encoding |
| CIE standard illuminant | [D65][Illuminant.D65] |
| Range | `[0.0, 1.0]` |

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

Oklab

val OklabColorSpace

Lab color space Oklab. This color space uses Oklab D65 as a profile conversion space.

| Property                | Value                                                   |
|-------------------------|---------------------------------------------------------|
| Name | Oklab |
| CIE standard illuminant | [D65][Illuminant.D65] |
| Range | (L: `[0.0, 1.0]`, a: `[-2, 2]`, b: `[-2, 2]`) |

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