mirror of
https://github.com/dyne/FreeJ.git
synced 2026-02-05 20:49:15 +01:00
processing-js 0.4 has been merged in some relevant parts basic and topic scripts added for test color handling fixed, more scripts show up now
20 lines
433 B
Plaintext
20 lines
433 B
Plaintext
size(200, 200);
|
|
noStroke();
|
|
|
|
color inside = color(204, 102, 0);
|
|
color middle = color(204, 153, 0);
|
|
color outside = color(153, 51, 0);
|
|
|
|
// These statements are equivalent to the statements above.
|
|
// Programmers may use the format they prefer.
|
|
//color inside = #CC6600;
|
|
//color middle = #CC9900;
|
|
//color outside = #993300;
|
|
|
|
fill(outside);
|
|
rect(0, 0, 200, 200);
|
|
fill(middle);
|
|
rect(40, 60, 120, 120);
|
|
fill(inside);
|
|
rect(60, 90, 80, 80);
|