Interface: AnimationFrame
Defined in: dom/src/canvas/animation.ts:9
What the canvas looked like when a frame was drawn.
Properties
count
count: number;
Defined in: dom/src/canvas/animation.ts:15
Frames drawn so far, starting at 0.
deltaTime
deltaTime: number;
Defined in: dom/src/canvas/animation.ts:17
Milliseconds since the previous frame.
elapsedTime
elapsedTime: number;
Defined in: dom/src/canvas/animation.ts:19
Milliseconds since the instance was created.
fps
fps: number;
Defined in: dom/src/canvas/animation.ts:21
Frames per second implied by deltaTime, or 0 when no time elapsed.
height
height: number;
Defined in: dom/src/canvas/animation.ts:13
Height of the canvas in CSS pixels.
width
width: number;
Defined in: dom/src/canvas/animation.ts:11
Width of the canvas in CSS pixels.