1/**
2 * Creating Colors (Homage to Albers).
3 *
4 * Creating variables for colors that may be referred to
5 * in the program by their name, rather than a number.
6 */
7
8size(200, 200);
9noStroke();
10
11color inside = color(204, 102, 0);
12color middle = color(204, 153, 0);
13color outside = color(153, 51, 0);
14
15// These statements are equivalent to the statements above.
16// Programmers may use the format they prefer.
17//color inside = #CC6600;
18//color middle = #CC9900;
19//color outside = #993300;
20
21fill(outside);
22rect(0, 0, 200, 200);
23fill(middle);
24rect(40, 60, 120, 120);
25fill(inside);
26rect(60, 90, 80, 80);
27