emitter
An 'emitter' generates points with a velocity This requires some sort of reactor to push the particles.
A single point can emit through an one direction, arc, or full pi a line emits along it.
Each can be performed with split lerp.
e = new Emitter(200, 300) //point
e = new Emitter(Line) // alone a spline.
newPoints = e.step()
allPoints = e.points
Meta Data
| filepath_exists | True |
| path | emitter |
| filepath | emitter.js |
| clean_files | () |
-
ClassDeclarationclass
Emitter
extends Pointclass comments:Every step performs a tick, used as the internal clock for generate and steppingClassDeclarationclassLineEmitter
extends Emitterclass comments:console.log('Cache Points')ClassDeclarationclassRandomPointEmitter
extends Emitterclass comments:Per birth, how much should the radius vary for each point. from the minSize to the max (point radius)ClassDeclarationclassPumpRandomPointEmitter
extends RandomPointEmitterclass comments:ClassDeclaration