Function: createAnimationCanvas()
function createAnimationCanvas(canvas, options): AnimationCanvasInstance;
Defined in: dom/src/canvas/animation.ts:118
Drive a canvas from requestAnimationFrame, keeping its backing store in
step with the device pixel ratio and, optionally, with the size of its
parent.
Drawing code works in CSS pixels: the context is scaled by the device pixel
ratio, and width / height of each AnimationFrame are CSS pixels.
Parameters
| Parameter | Type |
|---|---|
canvas | HTMLCanvasElement |
options | AnimationCanvasOptions |