some fixes in PShape examples

This commit is contained in:
shiffman
2012-07-19 16:27:02 +00:00
parent 309d95b0cb
commit a3b556dfd2
8 changed files with 12 additions and 9 deletions
@@ -15,6 +15,7 @@ class Star {
// You can set fill and stroke
s.fill(102);
s.stroke(255);
s.strokeWeight(2);
// Here, we are hardcoding a series of vertices
s.vertex(0, -50);
s.vertex(14, -20);
@@ -33,8 +34,8 @@ class Star {
void move() {
// Demonstrating some simple motion
x++;
if (x > width) {
x = 0;
if (x > width+100) {
x = -100;
}
}