Preparing search index...
The search index is not available
tsParticles - v3.0.0
tsParticles
tsParticles Particles.js integration
bundle
Canvas
Class Canvas
Index
Constructors
constructor
Properties
element?
size
Methods
clear
destroy
draw
draw
Async
draw
Particle
draw
Particle
Plugin
draw
Plugin
init
init
Background
init
Plugins
init
Updaters
load
Canvas
paint
resize
stop
window
Resize
Constructors
constructor
new
Canvas
(
container
,
engine
)
:
Canvas
Parameters
container
:
Container
engine
:
Engine
Returns
Canvas
Properties
Optional
element
element
?:
HTMLCanvasElement
Readonly
size
size
:
IDimension
Methods
clear
clear
(
)
:
void
Returns
void
destroy
destroy
(
)
:
void
Returns
void
draw
draw
<
T
>
(
cb
)
:
undefined
|
T
Type Parameters
T
Parameters
cb
:
(
(
context
:
CanvasRenderingContext2D
)
=>
T
)
(
context
)
:
T
Parameters
context
:
CanvasRenderingContext2D
Returns
T
Returns
undefined
|
T
draw
Async
draw
Async
<
T
>
(
cb
)
:
undefined
|
T
Type Parameters
T
Parameters
cb
:
(
(
context
:
CanvasRenderingContext2D
)
=>
T
)
(
context
)
:
T
Parameters
context
:
CanvasRenderingContext2D
Returns
T
Returns
undefined
|
T
draw
Particle
draw
Particle
(
particle
,
delta
)
:
void
Parameters
particle
:
Particle
delta
:
IDelta
Returns
void
draw
Particle
Plugin
draw
Particle
Plugin
(
plugin
,
particle
,
delta
)
:
void
Parameters
plugin
:
IContainerPlugin
particle
:
Particle
delta
:
IDelta
Returns
void
draw
Plugin
draw
Plugin
(
plugin
,
delta
)
:
void
Parameters
plugin
:
IContainerPlugin
delta
:
IDelta
Returns
void
init
init
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
init
Background
init
Background
(
)
:
void
Returns
void
init
Plugins
init
Plugins
(
)
:
void
Returns
void
init
Updaters
init
Updaters
(
)
:
void
Returns
void
load
Canvas
load
Canvas
(
canvas
)
:
void
Parameters
canvas
:
HTMLCanvasElement
Returns
void
paint
paint
(
)
:
void
Returns
void
resize
resize
(
)
:
boolean
Returns
boolean
stop
stop
(
)
:
void
Returns
void
window
Resize
window
Resize
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
element
size
Methods
clear
destroy
draw
draw
Async
draw
Particle
draw
Particle
Plugin
draw
Plugin
init
init
Background
init
Plugins
init
Updaters
load
Canvas
paint
resize
stop
window
Resize
tsParticles - v3.0.0
Loading...