Canvasity.save

Save the current state as though to a stack.

The full state of the canvas is saved, except for the pixels in the canvas buffer, and the current path.

TODO: this isn't strictly true, as the pattern image isn't saved.

Tip: to be able to reset the current clip region, save the canvas state first before clipping then restore the state to reset it.

Meta