Utilities for use with node-canvas or the browser's <canvas> element.