context_2d

Function context_2d 

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

Gets the 2d context of the given canvas.