Skip to content

Gradient beta ​

TypeAlias of @v12-engine/client

ts
export type Gradient = FxColor | readonly [from: FxColor, to: FxColor] | readonly (readonly [t: number, color: FxColor, other?: FxColor])[];

A colour over a particle's life: one for always, [from, to], or keys ([[0, '#fff'], [0.4, '#ff8030'], [1, '#30303000']]), each with a second colour for a random between the two ([0, '#ff8030', '#ffd060'])