Examples mods for 2.0

This commit is contained in:
Casey Reas
2011-09-16 05:00:28 +00:00
parent c3b8b312a0
commit 472fd13b2f
20 changed files with 210 additions and 241 deletions
@@ -2,10 +2,14 @@
* Smoke Particle System
* by Daniel Shiffman.
*
* A basic smoke effect using a particle system.
* Each particle is rendered as an alpha masked image.
* A basic smoke effect using a particle system. Each particle
* is rendered as an alpha masked image.
*/
// @pjs preload must be used to preload media if the program is
// running with Processing.js
/* @pjs preload="texture.gif"; */
ParticleSystem ps;
Random generator;
@@ -57,4 +61,4 @@ void displayVector(PVector v, float x, float y, float scayl) {
line(len,0,len-arrowsize,+arrowsize/2);
line(len,0,len-arrowsize,-arrowsize/2);
popMatrix();
}
}