mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Examples mods for 2.0
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user