[image of digits] Color Graphics Language

Color Theoryxxxxxxx
Understanding Color Spaces

Color is specified along three dimensions:
red
, green, blue.

The 8 corners of the cube are to the right ->

XXREDXX
value
XGREENX
value
xxBLUExx
value
XxXResultXxX
Notation
XXXXBGRXXXX
hex code
255
255
255
WHITE
W
0xFFFFFF
255
0
0
RED
Additive
Primaries:
RGB
0x0000FF
0
255
0
GREEN
0x00FF00
0
0
255
BLUE
0xFF0000
0
255
255
CYAN
XSubtractiveX
Primaries:
CMY
0xFFFF00
255
0
255
MAGENTA
0xFF00FF
255
255
0
YELLOW
0x00FFFF
0
0
0
BLACK
K
0x000000

All measurements are in pixels from the top left corner of the Canvas.

Form Component
The Form component is the entire Window where your application can draw. You can draw anywhere on a Window using Form1->Canvas.

PaintBox Component
The PaintBox component defines a smaller region within the Window where your application can draw. This is useful for maintaining multiple visualizations on the screen at one time. Use it as you would use Form1->Canvas.

Putting Pixels

Getting Pixels

Color Constants
Windows recognizes these color constants, representing the corners of the color cube (top row) plus variants (bottom row).

clRed

additive
primary
RED

clLime

additive
primary
GREEN

clBlue

additive
primary
BLUE

clAqua

subtractive
primary
CYAN

clFuchsia

subtractive
primary
MAGENTA

clYellow

subtractive
primary
YELLOW

clBlack

BLACK

clWhite

WHITE

clMaroon

clGreen
clNavy
clTeal
clPurple
clOlive
clGray
clSilver

Properties

Methods

Polygons and Polylines