Examples updated accordingly

This commit is contained in:
codeanticode
2012-12-30 22:51:11 +00:00
parent a4a0369e90
commit 5ecea76597
18 changed files with 125 additions and 112 deletions
@@ -13,9 +13,10 @@ void setup() {
smooth();
// First create the shape
star = createShape();
star.beginShape();
// You can set fill and stroke
star.fill(102);
star.stroke(255);
star.fill(color(102));
star.stroke(color(255));
star.strokeWeight(2);
// Here, we are hardcoding a series of vertices
star.vertex(0, -50);
@@ -28,7 +29,7 @@ void setup() {
star.vertex(-23, 7);
star.vertex(-47, -15);
star.vertex(-14, -20);
star.end(CLOSE);
star.endShape(CLOSE);
}
void draw() {