- setFillColor
Sets the color to be used for fill operations. This replaces any existing fill
gradient or pattern.
- setStrokeColor
Sets the color for strokes.
- createPath
Creates a path object.
- drawLine
Draws a line between the two specified points.
- fillPath
Fills the specified path.
- fillRect
Fills the specified rectangle.
- setStrokeWidth
Sets the width for strokes, in pixels.
- fillCircle
Fills a circle at the specified center and radius.
- fillText
Fills the text at the specified location. The text will use the current fill
color.
- strokeText
Strokes the text at the specified location. The text will use the current stroke
configuration (colo
- clear
Clears the entire canvas to rgba(0, 0, 0, 0).
- restore
Restores the canvas's previous state.