victus

description

this page documents methods and properties which are not described on their own pages.

properties

ctx
the canvas context.

methods

setup (obj : object)
initializes the canvas that victus will use.
obj takes the following keys:

this should typically be used with the DOMContentLoaded event:

document.addEventListener('DOMContentLoaded', victus.setup({
  id: 'canvas',
  w: 300,
  h: 300
}));

clear ( )
clears the canvas.