ParticleSystem ps; void setup() { size(400,400); framerate(30); colorMode(RGB,255,255,255,100); // ps = new ParticleSystem(1, new Vector3D(width/2,height/2)); ps = new ParticleSystem(36); smooth(); } void draw() { background(0); pushMatrix(); translate(width/2,height/2); ps.run(); popMatrix(); }