Colors are often defined in relative concentrations of red, green, and blue. Each color is a number from 0 to 255, inclusive; the RGB value of a color is calculated by the following formula: (red * 65536) + (green * 256) + blue
These are some often used colors and their values:
- Red: 16711680
- Green: 65280
- Blue: 255
- Cyan: 65535
- Magenta: 16711935
- Yellow: 16776960
- Black: 0