ColorModel


A color model is required by a ColorSpace to describe the way colors can be represented as tuples of numbers. A common color model is the RGB color model which defines a color as represented by a tuple of 3 numbers (red, green and blue).

Summary

Public companion properties

ColorModel

The CMYK model is a color model with 4 components that refer to four inks used in color printing: cyan, magenta, yellow and black (or key).

Cmn
ColorModel

The Lab model is a color model with 3 components used to describe a color space that is more perceptually uniform than XYZ.

Cmn
ColorModel

The RGB model is a color model with 3 components that refer to the three additive primiaries: red, green and blue.

Cmn
ColorModel

The XYZ model is a color model with 3 components that are used to model human color vision on a basic sensory level.

Cmn

Public functions

open String
Cmn

Public properties

Int

Returns the number of components for this color model.

Cmn

Public companion properties

Cmyk

val CmykColorModel

The CMYK model is a color model with 4 components that refer to four inks used in color printing: cyan, magenta, yellow and black (or key). CMYK is a subtractive color model.

Lab

val LabColorModel

The Lab model is a color model with 3 components used to describe a color space that is more perceptually uniform than XYZ.

Rgb

val RgbColorModel

The RGB model is a color model with 3 components that refer to the three additive primiaries: red, green and blue.

Xyz

val XyzColorModel

The XYZ model is a color model with 3 components that are used to model human color vision on a basic sensory level.

Public functions

toString

open fun toString(): String

Public properties

componentCount

val componentCountInt

Returns the number of components for this color model.

Returns
Int

An integer between 1 and 4