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
255 B
Plaintext
18 lines
255 B
Plaintext
float scale;
|
|
|
|
void setup()
|
|
{
|
|
size(200, 200);
|
|
noStroke();
|
|
scale = width/10;
|
|
}
|
|
|
|
void draw()
|
|
{
|
|
for(int i=0; i<scale; i++) {
|
|
colorMode(RGB, (i+1) * scale * 10);
|
|
fill(millis()%((i+1) * scale * 10) );
|
|
rect(i*scale, 0, scale, height);
|
|
}
|
|
}
|