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
| Parameter | Type |
|---|---|
context | CanvasRenderingContext2D |
frame | AnimationFrame |
Returns
void