ParticleProps Interface

Describes a particle to to add to a particle collection via ParticleCollectionBuilder.addParticle. The x, y, and z coordinates represent the centroid of the particle quad in the collection's coordinate space.

Extends

Properties

Name Type Description
size number | Readonly<WritableXAndY> The size of the particle, in the collection's coordinate space.  
transparency undefined | number The transparency with which to draw the particle as an integer in [0,255].  

Inherited properties

Name Type Inherited from Description
x Readonly number XYAndZ x coordinate
y Readonly number XYAndZ y coordinate
z Readonly number XYAndZ z coordinate

Defined in

Last Updated: 11 June, 2024