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
18 lines
355 B
Plaintext
18 lines
355 B
Plaintext
float box_size = 11;
|
|
float box_space = 12;
|
|
int margin = 7;
|
|
|
|
size(200, 200);
|
|
background(0);
|
|
noStroke();
|
|
|
|
// Draw gray boxes
|
|
|
|
for(int i = margin; i < width-margin; i += box_space) {
|
|
for(int j = margin; j < height-margin; j += box_space) {
|
|
fill(255 - box_size*10);
|
|
rect(j, i, box_size, box_size);
|
|
}
|
|
box_size = box_size - 0.6;
|
|
}
|