Processing
From Physical Programming
I messed around with Processing for a bit. It's interesting and seems to be quite useful. I think Arduino board can communicates with Processing somehow, I haven't got to that part yet.
and here's the code:
void setup() {
size(800, 200); noStroke(); background(255); fill(120, 110, 153, 204);
}
int value = 20;
void draw() {
fill(value); ellipse(10, 10, 50, 50); ellipse(30, 90, 60, 60); ellipse(80, 150, 5, 5); ellipse(390, 90, 6, 6); ellipse(500, 50, 50, 50); ellipse(670, 20, 60, 60); ellipse(90, 100, 50, 50); ellipse(400, 140, 60, 60); ellipse(70, 69, 50, 50); ellipse(290, 90, 60, 60); ellipse(300, 170, 5, 5); ellipse(650, 60, 6, 6);
}
void mouseMoved() {
value = value + 10;
if (value > 123) {
value = 20;
}
}


