canvas
Creates a new Canvas, and initializes it. Remember to assign a buffer via Canvas.setBuffer to the canvas before using the canvas itself.
Return
The new Canvas instance.
Parameters
parent
The canvas's parent.
init
Initialization block for the canvas.