Skip to content

five-on-it / apps/client/src/renderer/flames / Fire

Interface: Fire ​

Defined in: apps/client/src/renderer/flames.ts:47

A fire: flames fed where something burns, drawn every frame.

Properties ​

count ​

readonly count: number

Defined in: apps/client/src/renderer/flames.ts:62

The flames alive now.

Methods ​

burn() ​

burn(at, width, depth, rate, dt): void

Defined in: apps/client/src/renderer/flames.ts:52

Feeds the fire over dt seconds: rate flames a second rising off a patch width by depth metres round (x, y, z) (the patch's middle, at the height the flames start).

Parameters ​

at ​
x ​

number

y ​

number

z ​

number

width ​

number

depth ​

number

rate ​

number

dt ​

number

Returns ​

void


update() ​

update(dt): void

Defined in: apps/client/src/renderer/flames.ts:60

Moves the flames on by dt seconds and draws them; once a frame.

Parameters ​

dt ​

number

Returns ​

void