Readonly
angleThe angle value of the particles moving direction, in degrees.
Readonly
attractThe attract options for the particles.
Readonly
centerThe center of the particles moving direction. Used when the direction is MoveDirection.inside or MoveDirection.outside, or when spin is enabled.
The particles movement decay speed.
The particles movement direction, if using a number, it refers to the angle, in degrees.
The particles movement distance.
The particles movement drift value.
The particles movement enable status.
Readonly
gravityThe particles movement gravity options.
Readonly
outThe particles out modes when leaving canvas bounds.
Readonly
pathThe particles path options.
Sets if the particle speed will change based on the particle size, so bigger particles will move faster.
The particles movement speed.
Readonly
spinThe particles movement spin options.
Sets if the particles direction will be randomized or not, if true
the value won't be randomized.
Readonly
trailThe particles trail options.
Sets if the particles will vibrate or not.
Sets if the particle will respawn in the same coordinates on the other side of the canvas, or it will be randomized.
This load method is used to load data in the classes used as generic
Optional
data: RecursivePartial<IMove>the input options
Particles Move
angle
object
attract
object
direction
string
"none"
"top"
"top-right"
"right"
"bottom-right"
"bottom"
"bottom-left"
"left"
"top-left"
distance
object
enable
boolean
true
/false
gravity
object
noise
object
outModes
object
random
boolean
true
/false
size
boolean
true
/false
speed
number
4
speed
is the amount of time takes to travel the predefined distance for any particlestraight
boolean
true
/false
trail
object
vibrate
boolean
true
/false
warp
boolean
true
/false
Particles Move Angle
offset
boolean
true
/false
value
number
3000
Particles Move Attract
enable
boolean
true
/false
rotate.x
number
3000
rotate.y
number
1500
Particles Move Distance
horizontal
number
50
vertical
number
50
Particles Move Gravity
acceleration
number
9.81
enable
boolean
true
/false
maxSpeed
number
50
Particles Move Noise
clamp
boolean
true
/false
delay.value
number
/object
1
/{ min: 0.5, max: 1.5 }
enable
boolean
true
/false
generator
string
"generator name"
Particles Move Out Modes
default
string
"out"
"destroy"
"bounce"
"none"
"split"
bottom
string
"out"
"destroy"
"bounce"
"none"
"split"
left
string
"out"
"destroy"
"bounce"
"none"
"split"
right
string
"out"
"destroy"
"bounce"
"none"
"split"
top
string
"out"
"destroy"
"bounce"
"none"
"split"
Particles Move Spin
acceleration
number
2
enable
boolean
true
/false
position
object
{ x: 50, y: 50 }
Particles Move Trail
enable
boolean
true
/false
length
number
10
fillColor
color object
color
object is the same described here {@links IColor}