Skip to content

1681-engine / index / fireflyGlow

Function: fireflyGlow() ​

ts
function fireflyGlow(t): 0 | 1 | 2;

Defined in: src/ambient/life/lifeMotion.ts:72

A firefly's blink at t seconds: 0 dark most of the time, 2 a glow for a beat, 1 a dim pixel either side of it.

Parameters ​

ParameterType
tnumber

Returns ​

0 | 1 | 2

Released under the MIT License.