particleSystem Example : Fireworks
The emitter is a point radiating out in all directions; gravity pulls the particles down.
/* particleSystem Example 4: Fireworks */
light ()
particleSystem (
emitterVolume(point 0 5 8),
initialDirection(-1 -1 -1 1 1 1),
speed (3),
rotation (-180 -180 -180 180 180 180),
size (.1 .3),
color(1 .3 0),
emitterRate(100),
lifespan(10),
force("gravity" 0 0 -5),
count(100)
)
|
|
(c) Ben Chang