Changes canvas animations to require a 2d rendering context instead of a canvas element.