# Canvas

Represents a surface to draw pictures into.

# Examples

Make a Canvas and immediately clear it to blue.
var canvas = new Vellum.Canvas(width, height);
var picture = canvas.makePicture();
picture.clear(Color.blue);
picture.submit(this);
Make a software Canvas.
var canvas = new Vellum.Canvas(width, height, true);

# Constructors

# Canvas(int width, int height, bool forceSoftware = False)

Creates a canvas of the given width and height.

int width
The width in pixels of the backing texture.
int height
The height in pixels of the backing texture.
bool forceSoftware
Set to true to force the system to use a CPU renderer.

# Properties

# Texture texture

The backing texture the canvas will draw to.

# Methods

# Picture makePicture()

Create a Picture object which is used to issue draw commands.