// rechteckige Grundfläche, mit Maus Horizontal und Verikal Variabel void setup() { size (900,900); noStroke(); int x = 0; } void draw() { background(0); rectMode(CENTER); rect (450,450,mouseX,mouseY); //int x = 0; } void mousePressed() { if (mousePressed == true) { int x = 0; background(204); if(x < 100) { line(x, 0, x, 100); x = x + 1; } else { noLoop(); } // Saves each frame as screen-0000.tif, screen-0001.tif, etc. saveFrame(); } }