Adds an arc to the current path (used to create circles, or parts of circles).
Starts a new path by emptying the list of sub-paths. Call this method when you want to create a new path.
Adds a cubic Bezier curve to the current path.
Adds a straight line to the path, going to the start of the current sub-path.
Creates a circular gradient, centered in (x, y) and going from 0 to endRadius.
Creates an elliptical gradient. First radius is given by (x1, y1), second radius with a radius at 90° with the first one).
Creates a linear gradient along the line given by the coordinates represented by the parameters.
Retrieves the current transformation matrix.
Fills all subpaths of the current path using the current fillStyle. Open subpaths are implicitly closed when being filled.
Fill a disc using the current fillStyle. Note: affects the current path.
Fill a rectangle using the current fillStyle. Note: affects the current path.
Set current fill rule.
Get current fill rule.
Set the fill style. The fill style can be a plain color fill, a CanvasGradient, or an HTML-compatible text string.
Set global composite operation.
Get global composite operation.
Initialize the Canvas object with this target.
Connects the last point in the current sub-path to the specified (x, y) coordinates with a straight line. If several points are provided, it is equivalent to consecutive single-point lineTo calls.
Moves the starting point of a new sub-path to the (x, y) coordinates.
Adds a quadratic Bézier curve to the current path.
Add a rect to the current path.
Changes the current transformation matrix to the identity matrix.
Restores state corresponding to save().
Adds a rotation to the transformation matrix. The angle argument represents a clockwise rotation angle and is expressed in radians.
Save: - current transform
Adds a scaling transformation to the canvas units by x horizontally and by y vertically.
Multiplies the current transformation matrix with the matrix described by its arguments.
Multiplies the current transformation matrix with the matrix described by its arguments.
Adds a translation transformation by moving the canvas and its origin x horizontally and y vertically on the grid.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement
Important: * Only works on RGBA output. * There need at least 12 extra bytes between lines (trailingSamples = 3 in OwnedImage). You can use OwnedImage to have that guarantee. See https://github.com/AuburnSounds/Dplug/issues/563 For now, avoid full-UI controls that use a Canvas.
A 2D Canvas able to render complex pathes into an ImageRef!RGBA buffer. Canvas tries to follow loosely the HTML 5 Canvas API.