🔥
CS1334
  • Introduction to Programming
  • Algorithm
  • RGB Colormode
  • HSB Colormode
  • Animation
  • Contrasting Concepts - Art
  • Geometric Transform Functions
    • Animation Using Transforms
  • Functions to Draw Characters
  • Functions to Draw Flowers
  • Bounding Box Conditional Branching
  • Canvas Border Constraints
  • Loops Using Math Formulas for Position
  • Finite State Machine
  • Arrays
  • KeyPress Logic
  • Time
  • Collision between objects
  • Buttons
  • Scene Management - State Variables
  • Project 3 - Animation Specification - FSM
  • Project 4 - Animation Logic
  • Project 5
  • Javascript Syntax
    • Variables
    • Indentifiers
    • Functions
    • Variable Scope: Global or Local
    • Logical Operators
    • Numerical Operator Shortcuts
    • Repetition - Loops
Powered by GitBook
On this page

Was this helpful?

RGB Colormode

PreviousAlgorithmNextHSB Colormode

Last updated 5 years ago

Was this helpful?

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."

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.

wikipedia
wikipedia