Calling Momo.setCanvas() again works for dynamically resizing the main canvas when needed, but a more elegant approach would be preferred. Perhaps something like Momo.resizeCanvas() and/or Momo.setCanvasWidth() and Momo.setCanvasHeight() would suffice.
Calling
Momo.setCanvas()
again works for dynamically resizing the main canvas when needed, but a more elegant approach would be preferred. Perhaps something likeMomo.resizeCanvas()
and/orMomo.setCanvasWidth()
andMomo.setCanvasHeight()
would suffice.