This is the core class, create an instance to have a new working particles manager
the engine used by container
the id to identify this instance
Optional
sourceOptions: RecursivePartial<IOptions>the options to load
Private
Optional
_currentPrivate
_delayPrivate
Optional
_delayPrivate
Optional
_drawPrivate
_durationThe container duration
Private
Readonly
_enginePrivate
Readonly
_eventPrivate
_firstPrivate
_initialPrivate
Readonly
_intersectionPrivate
Readonly
_intersectionPrivate
_lifeThe container lifetime
Private
Readonly
_nextPrivate
_optionsPrivate
_pausedPrivate
_sourceThe options loaded by the container, it's a full Options object
Readonly
canvasCanvas object, in charge of the canvas element and drawing functions
Check if the particles' container is destroyed, if so it's not recommended using it
Readonly
drawersAll the shape drawers used by the container
The container fps limit, coming from options
Readonly
idthe id to identify this instance
Optional
lastLast frame time, used for delta values, for keeping animation correct in lower frame rates
The container check if it's hidden on the web page
Readonly
particlesThe particles manager
Readonly
pluginsAll the plugins used by the container
Optional
responsiveReadonly
retinaCheck if the particles container is started
The options that were initially passed to the container
the source options passed to the container
Adds a click handler to the container
the callback to be called when the click event occurs
Optional
particles: Particle[]Add a new path generator to the container
the key to identify the path generator
Optional
generator: IMovePathGeneratorthe path generator
if true, override the existing path generator
true if the path generator was added, false otherwise
Restarts the container, just a Container.stop/Container.start alias
the Promise of the start method
Customise path generation
Optional
noiseOrGenerator: IMovePathGenerator | ((particle) => Vector)the IMovePathGenerator object or a function that generates a Vector object from Particle
Optional
init: (() => void)the IMovePathGenerator init function, if the first parameter is a generator function
Optional
update: (() => void)the IMovePathGenerator update function, if the first parameter is a generator function
Use the new setPath
Customise path generation
Optional
pathOrGenerator: IMovePathGenerator | ((particle) => Vector)the IMovePathGenerator object or a function that generates a Vector object from Particle
Optional
init: (() => void)the IMovePathGenerator init function, if the first parameter is a generator function
Optional
update: (() => void)the IMovePathGenerator update function, if the first parameter is a generator function
Use the new addPath
The object loaded into an HTML element, it'll contain options loaded and all data to let everything working