Sechs Kursabende à vier Stunden an der EB Zürich
Kurskonzeption und Leitung Hanna Züllig
/* Autor: Anja Sitter Kurs: Einblick in die generative Gestaltung mit processing ip971231 Kursleitung: Hanna Zuellig Veroeffentlicht unter der creative common license Attribution-NonCommercial-ShareAlike CC BY-NC-SA http://creativecommons.org/licenses/ */ int x = 0; int y = 0; int a = mouseX; int b = mouseY; int d = 2; int zaehler = int(random(20)); void setup(){ size(500,500); background(0); strokeWeight(1); smooth(); } void draw(){ int zaehler = int(random(20)); for (int y=0; y<450; y=y+zaehler){ for(int x=0; x<450; x=x+zaehler){ randomSeed(mouseX); fill(255, mouseY/10); int a = mouseX/20; int b = mouseY/20; int d = mouseX/2; if(mouseX==0 && mouseY==0 ){ a=1; b=1; d=5; fill(255, 50); } ellipse(x*a,y*b,d,d); } } if (mousePressed==true){ // deaktiviert bei display ueber processing.js saveFrame("bild.png"); } text("Interact", 440,490); }