Skip to main content

Type Alias: CanvasDrawFunction

type CanvasDrawFunction = (context, frame) => void;

Defined in: dom/src/canvas/animation.ts:28

Draws one frame, given the 2D context and the frame: the size in CSS pixels, count, deltaTime, elapsedTime and fps.

Parameters​

ParameterType
contextCanvasRenderingContext2D
frameAnimationFrame

Returns​

void