Interface for a generic Canvas with different APIs,
that can be used to draw graphics.

Variables

read onlyg1:Graphics

The Graphics1 interface object.
Basic setPixel operation.

read onlyg2:Graphics

The Graphics2 interface object.
Use this for 2D operations.

read onlyg4:Graphics

The Graphics4 interface object.
Use this for 3D operations.

read onlyheight:Int

The height of the canvas in pixels.

read onlywidth:Int

The width of the canvas in pixels.