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
17 lines
315 B
Plaintext
17 lines
315 B
Plaintext
void setup()
|
|
{
|
|
size(200, 200);
|
|
noStroke();
|
|
colorMode(RGB, 255, 255, 255, 100);
|
|
rectMode(CENTER);
|
|
}
|
|
|
|
void draw()
|
|
{
|
|
background(51);
|
|
fill(255, 80);
|
|
rect(mouseX, height/2, mouseY/2+10, mouseY/2+10);
|
|
fill(255, 80);
|
|
rect(width-mouseX, height/2, ((height-mouseY)/2)+10, ((height-mouseY)/2)+10);
|
|
}
|