Color - RGB (Red Green Blue Additive Model)

> (Data|State) Management and Processing > (Data Type|Data Structure) > Color

1 - About

Red Green Blue (RGB) is a color space (model) that specify a color by setting the amount of each of its three primary colors Red, Green, Blue (RGB).

Red Green Blue is an additive model.

The main purpose of the RGB colour model is for the rendering of images on electronic systems, such as televisions and monitors.

Advertising

3 - Space

Rgb Color space definition - A simple color consists of three 8-bit numbers in the range 0..255, representing the red, green, and blue components of the color respectively, in the sRGB color space. As of 2007, sRGB is by far the most commonly used RGB color space.

In the RGBA you will find a fourth entry - Alpha (A) which define the transparency.

4 - Operations

4.1 - Addition

RGB is an additive model.

<MATH> \begin{array}{rrrl} & & red & + & green & = & yellow \\ & & red & + & blue & = & magenta \\ & & green & + & blue & = & cyan \\ red & + & green & + & blue & = & white \\ \end{array} </MATH>

4.2 - to CMYK

5 - Representation

To create a three-dimensional representation of a given color space, we can assign:

  • the amount of red color to the X axis,
  • the amount of green to its Y axis,
  • the amount of blue to its Z axis.

The resulting 3-D space provides a unique position for every possible color that can be created by combining those three pigments.

Advertising
data/type/color/rgb.txt · Last modified: 2019/04/05 10:33 by gerardnico