Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Dieses Beispiel zeigt euch wie man Linien-Attribute verändert und komplexere Formen zeichnet.

Code Block
languagejava
size(300,300); // def. fenstergroesse

...


 background(0); // def. hintergrundfarbe

...


stroke(255); // def. zeichenfarbe

...


 strokeWeight(8); // linienbreite

...


 strokeJoin(MITER); // default

...


 //strokeJoin(BEVEL);

...


 //strokeJoin(ROUND);

...


 noFill();

...


beginShape();

...


 vertex(50,50);

...


 vertex(200,50);

...


 vertex(200,200);

...


 vertex(50,200);

...


 vertex(50,100);

...


 vertex(150,100);

...


 vertex(150,150);

...


 endShape();

 

Beispiel 3 -Farben und Transparenz

...