float x; float y; int s = 10; void setup() { size(400, 400); background(255, 245, 245); smooth(); noStroke(); // width und height sind erst nach size(..) gesetzt! x = width/2; y = height/2; } void draw() { fill(200, 0, 0, 10); x = x + random(-5, 5); y = y + random(-5, 5); x = constrain(x, 0, width); y = constrain(y, 0, height); ellipse(x, y, s, s); }