2D rendering context for the Canvas API
Methods
-
roundRect(x, y, width, height, radius)
-
Draws a rounded rectangle using the current state of the canvas. Draw a rectangle if the radius is null.
Parameters:
Name Type Description xNumber The top left x coordinate
yNumber The top left y coordinate
widthNumber The width of the rectangle
heightNumber The height of the rectangle
radiusNumber The corner radius.
-
textPath(text, path)
-
CanvasRenderingContext2D: draw text along path
Parameters:
Name Type Description textstring pathArray.<Number>