Interface: ParticleSystemOptions
Defined in: src/mobjects/particles/ParticleSystem.ts:69
Options for creating a ParticleSystem.
Properties
endColor?
optionalendColor:string
Defined in: src/mobjects/particles/ParticleSystem.ts:95
Color at death. Default: white.
endSize?
optionalendSize:number
Defined in: src/mobjects/particles/ParticleSystem.ts:91
Size at death. Default: 0.
forces?
optionalforces:ParticleForces
Defined in: src/mobjects/particles/ParticleSystem.ts:87
Forces applied each step. Default: none.
lifetime?
optionallifetime:number
Defined in: src/mobjects/particles/ParticleSystem.ts:75
Base lifetime in seconds. Default: 2.
lifetimeSpread?
optionallifetimeSpread:number
Defined in: src/mobjects/particles/ParticleSystem.ts:77
Random +/- lifetime variation in seconds. Default: 0.
maxParticles?
optionalmaxParticles:number
Defined in: src/mobjects/particles/ParticleSystem.ts:73
Maximum living particles. Emission stops at the cap. Default: 500.
position?
optionalposition:Vector3Tuple
Defined in: src/mobjects/particles/ParticleSystem.ts:79
Emitter origin [x, y, z]. Default: [0, 0, 0].
positionSpread?
optionalpositionSpread:Vector3Tuple
Defined in: src/mobjects/particles/ParticleSystem.ts:81
Random +/- spawn offset per axis from the origin. Default: [0, 0, 0].
seed?
optionalseed:number
Defined in: src/mobjects/particles/ParticleSystem.ts:99
Seed for the deterministic PRNG. Default: 0.
spawnRate?
optionalspawnRate:number
Defined in: src/mobjects/particles/ParticleSystem.ts:71
Particles emitted per second. Default: 20.
startColor?
optionalstartColor:string
Defined in: src/mobjects/particles/ParticleSystem.ts:93
Color at birth. Default: white.
startSize?
optionalstartSize:number
Defined in: src/mobjects/particles/ParticleSystem.ts:89
Size at birth. Default: 8.
useOklab?
optionaluseOklab:boolean
Defined in: src/mobjects/particles/ParticleSystem.ts:97
Interpolate color in Oklab space for a smoother blend. Default: false.
velocity?
optionalvelocity:Vector3Tuple
Defined in: src/mobjects/particles/ParticleSystem.ts:83
Initial velocity [x, y, z] in units/sec. Default: [0, 1, 0].
velocitySpread?
optionalvelocitySpread:Vector3Tuple
Defined in: src/mobjects/particles/ParticleSystem.ts:85
Random +/- velocity variation per axis. Default: [0, 0, 0].