pub fn context_2d(
canvas: &HtmlCanvasElement,
) -> Result<CanvasRenderingContext2d, String>
Expand description
Gets the 2d context of the given canvas.
pub fn context_2d(
canvas: &HtmlCanvasElement,
) -> Result<CanvasRenderingContext2d, String>
Gets the 2d context of the given canvas.