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
15 lines
284 B
Plaintext
15 lines
284 B
Plaintext
size(200, 200);
|
|
background(0);
|
|
|
|
for(int i=10; i<width; i+=10) {
|
|
// If 'i' divides by 20 with no remainder draw the first line
|
|
// else draw the second line
|
|
if(i%20 == 0) {
|
|
stroke(153);
|
|
line(i, 40, i, height/2);
|
|
} else {
|
|
stroke(102);
|
|
line(i, 20, i, 180);
|
|
}
|
|
}
|