addParticle

addParticle: (particle: ParticleProps) => void

Add a particle to the collection. If size is omitted, this.size is used. If transparency is omitted, this.transparency is used.

@throws Error if particle size is defined and not greater than zero.

Defined in

Last Updated: 14 November, 2024