Skip to content

Instantly share code, notes, and snippets.

@bhelx
Created January 9, 2011 21:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bhelx/772055 to your computer and use it in GitHub Desktop.
Save bhelx/772055 to your computer and use it in GitHub Desktop.
public class BoxParticle extends Particle {
int color;
int size;
public BoxParticle(PVector location, int color, int size) {
super(location);
this.color = color;
this.size = size;
}
//overrides Particle's render()
public void render() {
fill(color);
rect(getLoc().x, getLoc().y, size, size);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment