IFD:GenerativeBauhaus WS2012/Jenny

From Medien Wiki
< IFD:GenerativeBauhaus WS2012
Revision as of 13:04, 30 October 2012 by Yulyvee (talk | contribs) (Created page with "'''Programmcode:''' int x; int y; void setup() { background(255); // Hintergrundfarbe festlegen smooth(); // Verfeinert Linen size(500,500); // Größe festlegen /...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Programmcode: int x; int y;

void setup()

 {
 background(255); // Hintergrundfarbe festlegen
 smooth(); // Verfeinert Linen
 size(500,500); // Größe festlegen
 
 // erster Punkt
 int x=int(random(500));
 int y=int(random(500)); 
 fill(0);
 stroke(0); // Farbe des Randes ( Antialising )
 ellipse(x, y, 10,10); // Zeichnet eine ellipse

  }

void draw() // Zeichenfunktion

  { if(mousePressed){
  int x=int(random(500));
  int y=int(random(500)); 
  fill(200);
  stroke(200);
  ellipse(x, y, 10,10); // Zeichnet eine ellipse
  }
  }

Ergebnisse