Quick & dirty canvas-as-background utility. Fills the page, centered, without scrollbars. For example usage, see here.
- Optional. Apply a scaling factor to the entire canvas.
- Optional. Specify a z-index to be applied.
- The div that holds the canvas, and is added to the DOM.
- The canvas.
- The canvas's context.
- returns the unscaled width of the canvas
- returns the unscaled height of the canvas
- returns an array describing the visible area of the canvas: [left, top, width, height]