Particle Systems in Processing    
     
09.27.04

<  ^  >

Enter particles

 

why are they so compelling?

 

setting up a PSystem project

PSystem plugin documentation

 

Example 1

  • variable declarations
  • variable assignments
  • creating particles
  • adding particles
  • running the system

 

PSystem ps;

void setup() {
  size(500,500);
  ps = (PSystem)loadPlugin("PSystem");
  
  Particle p = new Particle();
  p.setPos(width / 2, 0, 0);
  ps.addParticle(p);
}

void loop() {
  background(#99CCCC);
  ps.draw();
}