Removed center() method, added getCenter(), updated examples

This commit is contained in:
codeanticode
2012-04-11 22:27:21 +00:00
parent 611ac827e6
commit e4dbc6fd9c
5 changed files with 67 additions and 216 deletions
@@ -36,7 +36,8 @@ class Particle {
velocity = new PVector(cos(a), sin(a));
velocity.mult(speed);
lifespan = 255;
part.center(x,y);
PVector center = part.getCenter();
part.translate(x - center.x, y - center.y);
}
boolean isDead() {