Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.