//Variable GF mit fester Grundseite //Linien koennen sich ueberschneiden //fortfuehrung Programm 3 und 4 int m; float a,b,c,d,e,f,g,h; void setup () { size (800,800); fill (200); smooth(); reset(); } void reset() { background (255); a = random (800); b = random (700); c = 700; d = 700; e = 100; f = 700; g = random (800); h = random (700); } void draw () { background (255); line (g, h,a,b); line (a,b,c,d); line (c,d,e,f); line (e,f,g,h); fill (0); quad(g, h, a,b,c,d,e,f); } void keyPressed() { if ((key == 'h') ) { reset(); if (key == 'a'); } } void mousePressed() { if (mousePressed == true) { int x = 0; 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(); } }