Skip to main content

Shapes

Draw functions that draw shapes onto the canvas, be that lines, circles or curves.

  • circle Draws a circle at a point.
  • arc Draws an arc between two points.
  • mark Draws a mark at a point in a direction.
  • line Draws a line between two points, or a line strip between 3 or more points.
  • grid Draws a grid.
  • content Places some content on the canvas.
  • rect Draws a rectangle between two points.
  • bezier Draws a bezier with control points.
  • hobby Draws a hobby curve.
  • catmull Draws a Catmull-Rom curve.
  • merge-path Merges the paths of other draw functions into one continuous path.