Skip to content

1681-engine / pixel / flashLight

Function: flashLight() ​

ts
function flashLight(
   x, 
   y, 
   r, 
   ms, 
   color?, 
   now?
): void;

Defined in: src/pixel/lights.ts:35

A flash at (x, y) in color: r px at once, shrinking to nothing over ms.

Parameters ​

ParameterTypeDefault value
xnumberundefined
ynumberundefined
rnumberundefined
msnumberundefined
colornumberSPARK
nownumber...

Returns ​

void

Released under the MIT License.