[][src]Module canvas_display::utils

Collection of helpers (shorthands) to access and create elements in a browser window.

Functions

body

Gets the body of the browser document.

canvas

Gets a canvas by the given id or create it if it does not exists.

context_2d

Gets the 2d context of the given canvas.

create_canvas

Creates a new canvas width given with and height.

document

Gets the document of the browser window.

window

Gets the browser window.