Abstract-out canvas creation into an object.
Moved canvas creation and size management into a new Canvas class. This is the first step towards a more object-oriented architecture. Since we create multiple canvases, and have to maintain several module-global variables to track their properties, they are the ideal place to start. This commit also removes sizing code that was duplicated between makeCanvas and resizeCanvas.
Showing
This diff is collapsed.
Please
register
or
sign in
to comment