ColorModel
enum ColorModel
A color model is an abstract mathematical model describing the ways colors can be represented as tuples of numbers, typically as three or four values or color components.
-
A representation of the RGB color model using hexadecimal numbers, i.e.,
#0080ff
.Declaration
Swift
case Hex
-
The RGB (red, green, blue) color model, an additive color mixing, device-dependent model used mainly for the representation and display of images in digital formats.
Declaration
Swift
case RGB
-
The RYB (red, yellow, blue) color model, a traditional model used in a standard artist’s color wheel, particularly in painting.
Declaration
Swift
case RYB
-
The CMYK (cyan, magenta, yellow, black) color model, a subtractive color mixing model used in color printing.
Declaration
Swift
case CMYK
-
The HSB (hue, saturation, brightness) color model is an alternative representation to the RGB color model designed to more closely align with the way human vision perceives color-making attributes. HSB is the same as HSV.
The HSB representation models the way paints of different colors mix together, with the saturation dimension resembling various shades of brightly colored paint, and the brightness dimension resembling the mixture of those paints with varying amounts of black or white paint
Declaration
Swift
case HSB
-
The HSV (hue, saturation, value) color model is an alternative representation to the RGB color model designed to more closely align with the way human vision perceives color-making attributes. HSV is the same as HSB.
The HSV representation models the way paints of different colors mix together, with the saturation dimension resembling various shades of brightly colored paint, and the value dimension resembling the mixture of those paints with varying amounts of black or white paint
Declaration
Swift
case HSV
-
The HSL (hue, saturation, lightness) color model is an alternative representation to the RGB color model designed to more closely align with the way human vision perceives color-making attributes.
The HSL model attempts to resemble more perceptual color models such as the natural color system (NCS) or Munsell color system, placing fully saturated colors around a circle at a lightness value of ½, where a lightness value of 0 or 1 is fully black or white, respectively.
Declaration
Swift
case HSL
-
The HSI (hue, saturation, intensity) color model is an alternative representation to the RGB color model designed to more closely align with the way human vision perceives color-making attributes.
The HSI model commonly used for computer vision, which takes H as a hue dimension and the component average I (“intensity”) as a lightness dimension, does not attempt to “fill” a cylinder by its definition of saturation. Instead of presenting color choice or modification interfaces to end users, the goal of HSI is to facilitate separation of shapes in an image.
Declaration
Swift
case HSI
-
The CIE color spaces were the first defined quantitative links between distributions of wavelengths in the electromagnetic visible spectrum, and physiologically perceived colors in human color vision. The mathematical relationships that define these color spaces are essential tools for color management.
Declaration
Swift
case CIE
-
The YCbCr color model used as a part of the color image pipeline in video and digital photography systems. Y is the luminance (luma) component and Cb and Cr are the blue-difference and red-difference chrominance (chroma) components, respectively.
Declaration
Swift
case YCbCr
-
YPbPr is the analog version of the YCbCr color space; the two are numerically equivalent but YPbPr is designed for use in analog systems while YCbCr is intended for digital video.
Declaration
Swift
case YPbPr
-
YUV is a color encoding system typically used as part of a color image pipeline. It encodes a color image or video taking human perception into account, allowing reduced bandwidth for chroma components, thereby typically enabling transmission errors or compression artifacts to be more efficiently masked by human perception than using a “direct” RGB-representation.
Declaration
Swift
case YUV
-
YIQ is the color model used by the NTSC color TV system, intended to take advantage of human color-response characteristics. The chroma component I stands for in-phase, while chroma component Q stands for quadrature, referring to the used in quadrature amplitude modulation.
Declaration
Swift
case YIQ