Skip to content

ParticleOver beta ​

Interface of @v12-engine/client

ts
export interface ParticleOver

An emitter over its part's time (ParticleDef.over), where its other fields go over each particle's life: from 0 as the part starts to 1 at its end (its for, or the end of the effect), each times the field it goes with, so 1 is as the field says. A part that goes on until it is stopped has no end to go towards, and stays at its first key.

What is let go of takes what these are at that moment and keeps it: what is alive already is not changed

Members ​

color ​

ts
color?: Param<Gradient>;

What they are tinted as they are let go, times color: ['#ffffff', '#ff4020'] redder as it goes on, with how opaque. A system with this is moved on the CPU (its colours are baked in a texture on the graphics card)

rate ​

ts
rate?: Param<FxCurve>;

How many a second, times rate: [1, 0] fewer and fewer to none at its end (a trail of sparkles weakening)

shape ​

ts
shape?: Param<FxCurve>;

How wide its shape is, times its sizes (a radius, a box, a height): [0.2, 1] a ring opening. Nothing of a point or a mesh

size ​

ts
size?: Param<FxCurve>;

How big they are let go, times size. A key's second number: a random between, each

speed ​

ts
speed?: Param<FxCurve>;

How fast they set off, times speed. A key's second number: a random between, each