Sechs Kursabende à vier Stunden an der EB Zürich
Kurskonzeption und Leitung Hanna Züllig
/* Autor: Barbara Graf Horka Kurs: Einblick in die generative Gestaltung mit processing ip971311 Kursleitung: Hanna Zuellig Veroeffentlicht unter der creative common license Attribution-NonCommercial-ShareAlike CC BY-NC-SA http://creativecommons.org/licenses/ */ float angle=0; float angleinc=-0.8; void setup() { size(800,800); smooth(); stroke(180); strokeWeight(1); noFill(); } void draw() { if(mousePressed==false){ // background(255); //Variante fill(251,180,104,10); rect(0,0,width,height); stroke(0); }else{ //background(0); //Variante fill(0,10); rect(0,0,width,height); stroke(251,180,104,100); } for (int y =50; y<=height; y +=100) { for(int x=50; x<=width; x+=100) { pushMatrix(); fill(0,5); translate(x,y); rotate(angle); rect(0,0,30,30); popMatrix(); } } angle+=angleinc; }