Function silkenweb::elements::html::canvas

source ·
pub fn canvas<D: Dom>() -> Canvas<D>
Expand description

Construct the HTML canvas element

Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.