Skip to content

FxTrail beta ​

Interface of @v12-engine/client

ts
export interface FxTrail

A trail behind the part as it moves (on a unit, moved with handle.move, going round with orbit): a ribbon of light

Members ​

blend ​

ts
blend?: Param<'add' | 'alpha'>;

Added to what is behind it (add: light, magic) or laid over it (alpha, when left out)

color ​

ts
color?: Param<FxColor>;

Its colour, with how opaque: white when left out

gap ​

ts
gap?: Param<number>;

A jump farther than this in a frame, in world units (a strand starting again at the bottom, FxOrbit.climb), starts it anew where it jumped to, what was drawn left where it is to fade out (linger): never when left out

linger ​

ts
linger?: Param<number>;

Seconds what it drew before a jump (gap) takes to fade out: a third of a second when left out

soft ​

ts
soft?: Param<boolean>;

Fading to nothing along its length and soft at its edges, rather than a solid tube: no when left out

strength ​

ts
strength?: Param<FxCurve>;

How strong over the part's life (FxCurve), its width and brightness times this: weakening to nothing ([1, 0])

taper ​

ts
taper?: boolean;

Narrowing to its tail (yes when left out) or as wide all along

time ​

ts
time?: Param<number>;

How long it is, in seconds of the way it went, read as it starts: half a second when left out. Kept by time, so as long at 30 frames a second as at 240 (60 points of it a second, at least 2). It was length, in frames: a file's length is read as that many sixtieths of a second

width ​

ts
width?: Param<number>;

How wide, in world units: 0.2 when left out