Model
class Model
kotlin.Any | ||
↳ | kotlin.Enum<android.graphics.ColorSpace.Model> | |
↳ | android.graphics.ColorSpace.Model |
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
Enum values | |
---|---|
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). |
|
The Lab model is a color model with 3 components used to describe a color space that is more perceptually uniform than XYZ. |
|
The RGB model is a color model with 3 components that refer to the three additive primaries: red, green and blue. |
|
The XYZ model is a color model with 3 components that are used to model human color vision on a basic sensory level. |
Public methods | |
---|---|
Int |
Returns the number of components for this color model. |
Enum values
CMYK
enum val CMYK : ColorSpace.Model
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
enum val LAB : ColorSpace.Model
The Lab model is a color model with 3 components used to describe a color space that is more perceptually uniform than XYZ.
RGB
enum val RGB : ColorSpace.Model
The RGB model is a color model with 3 components that refer to the three additive primaries: red, green and blue.
XYZ
enum val XYZ : ColorSpace.Model
The XYZ model is a color model with 3 components that are used to model human color vision on a basic sensory level.
Public methods
getComponentCount
fun getComponentCount(): Int
Returns the number of components for this color model.
Return | |
---|---|
Int |
An integer between 1 and 4 Value is between 1 and 4 inclusive |