Skip to content

1681-engine / pixel / carriedLight

Function: carriedLight() ​

ts
function carriedLight(
   at, 
   r, 
   color?, 
   now?
): object;

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

A light that rides at until end() is called (a shot in flight), and never past CARRIED_MAX_MS.

Parameters ​

ParameterTypeDefault value
at() => objectundefined
rnumberundefined
colornumberSPARK
nownumber...

Returns ​

object

end ​

ts
end: () => void;

Returns ​

void

Released under the MIT License.