Einblick in die generative Gestaltung mit «Processing»

Sechs Kursabende à vier Stunden an der EB Zürich

Kurskonzeption und Leitung Hanna Züllig


< back

						/*
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(500,500);
  smooth();
  background(252,169,178);
  stroke(0,100);
  strokeWeight(7);
  noFill();
  rectMode(CENTER);
  
 for(int y=5; y<=height; y+=50) {
  for(int x=5; x<=width; x+=40) {
      fill(0,20);
      ellipse(x, y, 20, 200); 
   }
  }


}
 
void draw(){
   
   
  for(int y=0;y<=height;y+=40){
     
    for(int x=5;x<=width;x+=40){
     
       pushMatrix();
       translate(x,y*2.5); 
       rotate(radians(angle));
       rect(0,0,50,50);  
       popMatrix();
       fill(235,11,37,10);
       
      
    }
      
  }
  
    angle+=angleinc; 
   
  
   
}