|  (→Format) | |||
| Line 89: | Line 89: | ||
| == Format == | == Format == | ||
| [[File:Orginal.jpg]] | [[File:Orginal.jpg|250px]] | ||
| ---- | ---- | ||
| [[File:Quer.jpg]] | [[File:Quer.jpg|250px]] | ||
| ---- | ---- | ||
| [[File:quer_anders.jpg]] | [[File:quer_anders.jpg|250px]] | ||
| ---- | ---- | ||
| [[File:quer_anders2.jpg]] | [[File:quer_anders2.jpg|250px]] | ||
| ---- | ---- | ||
| [[File:anders.jpg]] | [[File:anders.jpg|250px]] | ||
| ---- | ---- | ||
| [[File:Hoch.jpg]] | [[File:Hoch.jpg|250px]] | ||
| ---- | ---- | ||
| [[File:Hoch2.jpg]] | [[File:Hoch2.jpg|250px]] | ||
| == Scribbles == | == Scribbles == | ||
| [[File:Scriples.jpg]] | [[File:Scriples.jpg]] | ||
Revision as of 09:40, 11 December 2012
Punkt
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
Linie
Programmcode:
float angle; float schnell = 20; float radius = 0; float groesse = 10;
void setup(){
size(400, 400); background(255); smooth(); }
void draw(){
translate(width / 2, height / 2); rotate(radians(angle)); strokeWeight(0.2); stroke(0, random(255)); line(random(radius), random(radius), random(groesse), random(groesse)); groesse += 0.2; angle += schnell; radius += 0.5; }
Ergebnisse
 
		
















