OptionalheightThe canvas height in pixels, like width
OptionalloopHow many times to repeat the animation: Infinity loops forever, 0 plays once, 1 plays twice, ... Anything else
throws: a RangeError unless it is an integer from 0 or Infinity, a TypeError unless it is a number
OptionalwidthThe canvas width in pixels (a fraction is truncated, like the size of an image): frames (or the parts of them) outside the canvas aren't encoded
Options of Animation's constructor: the canvas size and the loop count