Constructors
constructor
- new Particles(engine, container): Particles
Properties
movers
quadTree
updaters
Accessors
count
- get count(): number
Returns number
Methods
addManualParticles
- addManualParticles(): void
Returns void
addParticle
- addParticle(position?, overrideOptions?, group?, initializer?): undefined | Particle
Returns undefined | Particle
clear
- clear(): void
Returns void
destroy
- destroy(): void
Returns void
draw
- draw(delta): void
Returns void
filter
- filter(condition): Particle[]
Parameters
- condition: ((particle: Particle) => boolean)
- (particle): boolean
Returns boolean
find
- find(condition): undefined | Particle
Parameters
- condition: ((particle: Particle) => boolean)
- (particle): boolean
Returns boolean
Returns undefined | Particle
get
- get(index): undefined | Particle
Returns undefined | Particle
handleClickMode
- handleClickMode(mode): void
Returns void
init
- init(): Promise<void>
Returns Promise<void>
initPlugins
- initPlugins(): Promise<void>
Returns Promise<void>
push
- push(nb, mouse?, overrideOptions?, group?): void
Returns void
redraw
- redraw(): Promise<void>
Returns Promise<void>
remove
- remove(particle, group?, override?): void
Parameters
- particle: Particle
Optional
group: stringOptional
override: boolean
Returns void
removeAt
- removeAt(index, quantity?, group?, override?): void
Parameters
- index: number
Optional
quantity: numberOptional
group: stringOptional
override: boolean
Returns void
removeQuantity
- removeQuantity(quantity, group?): void
Parameters
- quantity: number
Optional
group: string
Returns void
setDensity
- setDensity(): void
Returns void
setLastZIndex
- setLastZIndex(zIndex): void
Returns void
setResizeFactor
- setResizeFactor(factor): void
Returns void
update
- update(delta): void
Returns void