RGB Colormode

The image below shows the RGB Additive Color Model.

"The RGB color model is an additive color model in which red, green and blue light are added together in various ways to reproduce a broad array of colors. The name of the model comes from the initials of the three additive primary colors, red, green and blue." wikipedia

Processing uses RGB Color Model by default for both the fill and stroke functions.

fill( red, green , blue); // function syntax

Values for the R, G, B parameters have a range of 0-255, this provide a wide range of colors: Since each color has 256 possible values, this results in 256 256 256 => 16.7 million colors (24-bit color), depending on the hardware of the display.

Last updated