Einblick in die generative Gestaltung mit «Processing»

Sechs Kursabende à vier Stunden an der EB Zürich

Kurskonzeption und Leitung Hanna Züllig


< back

						/*
Autor: Masus Meier
Kurs: Einblick in die generative Gestaltung mit processing ip971241
Kursleitung: Hanna Zuellig
Veroeffentlicht unter der creative common license Attribution-NonCommercial-ShareAlike
CC BY-NC-SA  http://creativecommons.org/licenses/
*/

int w = 800;
int h = 600;

int tile_w = 20;
int tile_h = 20;

color col = color(220,255,150,60);


void setup()
{
  size(w, h);
  smooth();
  frameRate(5);

  noStroke();
}

void draw()
{

  background(0);
 
  for (int j=0; j<=h/tile_h; j++)
  {
    for (int i=0; i<=w/tile_w; i++)
    {
      fill(col);
      ellipse(i*tile_w+tile_w/2, j*tile_h+tile_h/2, 3+random(5), random(45));
    }
  }
  
}