[][src]Function canvas_display::utils::context_2d

pub fn context_2d(
    canvas: &HtmlCanvasElement
) -> Result<CanvasRenderingContext2d, String>

Gets the 2d context of the given canvas.