Particles manager object

Hierarchy

  • Particles

Constructors

Properties

#engine: Engine
array: Particle[]

All the particles used in canvas

interactionManager: InteractionManager
lastZIndex: number
limit: number
movers: IParticleMover[]
needsSort: boolean
nextId: number
pushing?: boolean
quadTree: QuadTree

The quad tree used to search particles withing ranges

updaters: IParticleUpdater[]
zArray: Particle[]

Accessors

  • get count(): number
  • Returns number

Methods

  • Returns void

  • Parameters

    Returns void

  • Removes all particles from the array

    Returns void

  • Returns void

  • Parameters

    Returns Promise<void>

  • Parameters

    • mode: string

    Returns void

  • Returns void

  • Returns Promise<void>

  • Parameters

    • particle: Particle
    • Optional group: string
    • Optional override: boolean

    Returns void

  • Parameters

    • index: number
    • quantity: number = 1
    • Optional group: string
    • Optional override: boolean

    Returns void

  • Parameters

    • quantity: number
    • Optional group: string

    Returns void

  • Returns void

  • Parameters

    Returns Promise<void>