Worker-Safe Continuous Emitter Options. The worker version of EmitOptions: every worker-safe fire setting plus rate and follow. What the emitter follows is measured on the main thread and sent to the worker.
EmitOptions
rate
follow
Optional
Readonly
Emission Point: an element, "pointer" or a normalized point.
"pointer"
{ x: 0.5, y: 0.6 }
Emission Rate. Particles per second; must be a positive, finite number.
Unit: particles per second.
const stage = createWorker(canvas);const trail = stage.emit({ rate: 80, follow: "pointer", spread: 360 }); Copy
const stage = createWorker(canvas);const trail = stage.emit({ rate: 80, follow: "pointer", spread: 360 });
Worker-Safe Continuous Emitter Options. The worker version of
EmitOptions: every worker-safe fire setting plusrateandfollow. What the emitter follows is measured on the main thread and sent to the worker.