IFD:GenerativeBauhaus WS2012/Jenny: Difference between revisions

From Medien Wiki
No edit summary
No edit summary
Line 29: Line 29:


'''Ergebnisse'''
'''Ergebnisse'''
----
[[File:Punkt rechts oben.png]]
[[File:Punkt rechts oben_grau.png]]
----
[[File:Punkt rechts oben rand.png]]
[[File:Punkt rechts oben rand_grau.png]]
----
[[File:Punkt mitte.png]]
[[File:Punkt mitte_grau.png]]

Revision as of 13:53, 30 October 2012

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


Punkt rechts oben.png Punkt rechts oben grau.png


Punkt rechts oben rand.png Punkt rechts oben rand grau.png


Punkt mitte.png Punkt mitte grau.png