bindings for the canvas API