web_sys::CanvasRenderingContext2d Struct

The CanvasRenderingContext2d Struct provides the 2D rendering context for the drawing surface of the DOM canvas element. It is used for drawing shapes, text, images, and other objects.

Cargo.toml


.
.
.
[dependencies.web-sys]
version = "0.3.4"
features = [
  'CanvasRenderingContext2d',
]
.
.
.       
        

Functions

features/dependencies

Source Code