Class: Particle
index.Particle
Represents an emitted particle.
#
Constructors#
constructor• new Particle(options
)
Creates a new particle instance through the specified options.
#
ParametersName | Type |
---|---|
options | Partial <Omit <Particle , "id" | "initialLifetime" | "initialSize" | "initialRotation" >> |
#
Defined in#
Properties#
color• color: Color
The current color of the particle.
#
Defined in#
id• id: symbol
The unique (symbolic) ID of the particle.
#
Defined in#
initialLifetime• initialLifetime: number
The initial lifetime of the particle.
#
Defined in#
initialRotation• initialRotation: Vector
The initial rotation of the particle.
#
Defined in#
initialSize• initialSize: number
The initial size of the particle.
#
Defined in#
lifetime• lifetime: number
The remaining lifetime of the particle.
#
Defined in#
location• location: Vector
The current location of the particle, in pixels.
#
Defined in#
opacity• opacity: number
The opacity of the particle (from 0 to 1).
#
Defined in#
rotation• rotation: Vector
The current rotation of the particle, in euler angles, in degrees.
#
Defined in#
size• size: number
The current size of the particle.
#
Defined in#
velocity• velocity: Vector
The current velocity of the particle.