Introduce canvas and sizexy global functions.

This is a proposed API.