Type Alias: CanvasInitFunction
type CanvasInitFunction = (context, size) => void;
Defined in: dom/src/canvas/animation.ts:37
Sets up what every frame shares. Called once, with the context and the size in CSS pixels, before the first frame; not again on a resize.
Parameters
| Parameter | Type |
|---|---|
context | CanvasRenderingContext2D |
size | { height: number; width: number; } |
size.height | number |
size.width | number |
Returns
void