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
16 lines
245 B
Plaintext
16 lines
245 B
Plaintext
void setup() {
|
|
size(200, 200);
|
|
fill(126);
|
|
background(102);
|
|
}
|
|
|
|
void draw() {
|
|
if(mousePressed) {
|
|
stroke(255);
|
|
} else {
|
|
stroke(0);
|
|
}
|
|
line(mouseX-66, mouseY, mouseX+66, mouseY);
|
|
line(mouseX, mouseY-66, mouseX, mouseY+66);
|
|
}
|