Draw Drop

This is how to make Processing draw a drop on the stage.

int coord = 0; // X- und Y-Koordinate
int d = 1; // Kreisdurchmesser
 
void setup() {
 size(400, 400);
 noStroke()
 background(255);
 fill(0);
}
 
void draw() {
 ellipse(coord, coord, d, d);
 coord++;
 d++;
}
12.06.2010 | admin |