fixing up smoke particle system

This commit is contained in:
Daniel Shiffman
2013-03-06 16:46:31 -05:00
parent 5d09d85a78
commit c951d4a31b
3 changed files with 15 additions and 31 deletions

View File

@@ -11,14 +11,11 @@
/* @pjs preload="texture.png"; */
ParticleSystem ps;
Random generator;
void setup() {
size(640,360);
generator = new Random();
PImage img = loadImage("texture.png");
ps = new ParticleSystem(0,new PVector(width/2,height-60),img);
smooth();
}
void draw() {