Sechs Kursabende à vier Stunden an der EB Zürich
Kurskonzeption und Leitung Hanna Züllig
/* Autor: Sandro Azzati 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/ */ int y3 = 250; int x1 = 250; int x2 = x1 + 125; int x3 = 75; int x4 = x3 + 125; int x5 = 175; int x6 = x5 + 125; int laenge = 500; int pos = 250; float faktor = 1.2; int color1 = 255; int color2 = 0; void setup() { smooth(); size(500, 500); } void draw() { background(color1); stroke(color2); fill(color2); triangle(x3, 0, x3, 125, x4, 0); triangle(x3, 125, x3, y3, x4, 125); triangle(x3, y3, x3, 375, x4, y3); triangle(x1, 0, x1, 125, x2, 0); triangle(x1, 125, x1, y3, x2, 125); triangle(x1, y3, x1, 375, x2, y3); triangle(x5, 0, x5, 125, x6, 0); triangle(x5, 125, x5, y3, x6, 125); triangle(x5, y3, x5, 375, x6, y3); // saveFrame("formen_###.jpg"); noFill(); stroke(2550, 0, 0); rectMode(CENTER); stroke(255, 0, 0); rect(pos, pos, laenge/faktor, laenge/2); rect(pos, pos, laenge/faktor, laenge/3); rect(pos, pos, laenge/faktor, laenge/4); rect(pos, pos, laenge/faktor, laenge/5); rect(pos, pos, laenge/faktor, laenge/6); rect(pos, pos, laenge/faktor, laenge/7); rect(pos, pos, laenge/faktor, laenge/8); rect(pos, pos, laenge/faktor, laenge/9); rect(pos, pos, laenge/faktor, laenge/10); //pos = pos + 1; //if( pos > 500){ // pos = 0; //} if(mousePressed == true){ color1 = 0; color2 = 255; }else{ color1 = 255; color2 = 0; } if(mousePressed == true){ faktor = 1.5; }else{ faktor = 2; } // println(pos); // saveFrame("formen_###.jpg"); //noLoop(); }