Skip to content

SparkLook beta ​

Interface of @v12-engine/client

ts
export interface SparkLook

What a lot of sparks looks like

Members ​

color ​

ts
color: Rgb;

The sparks' colour, 0 to 1 per channel

count ​

ts
count: number;

How many of them: all in all for a burst, in a second for a stream

follow ​

ts
follow?: boolean;

They keep to where they came from when that moves, rather than staying behind

gravity ​

ts
gravity?: number;

How hard they are pulled down

height ​

ts
height?: number;

How tall the space they start in is, half of it above the middle and half below

life ​

ts
life?: [number, number];

Seconds they last, the shortest and the longest

over ​

ts
over?: number;

For a burst: seconds they keep coming. All at once when left out

radius ​

ts
radius?: number;

How far from the middle they start

rim ​

ts
rim?: boolean;

They start on the edge of that space only

size ​

ts
size?: [number, number];

The smallest and the biggest of them

solid ​

ts
solid?: boolean;

Dust rather than light: it covers what is behind it

speed ​

ts
speed?: [number, number];

How fast they set off, the slowest and the fastest

streaks ​

ts
streaks?: boolean;

Drawn long and thin, along the way they go

tint ​

ts
tint?: Rgb;

The colour some of them have instead. A lighter shade of the first when left out

way ​

ts
way: SparkWay;

Which way the sparks go from where they start