Function arc

Return series of elements that can render an arc SVG.

  • Parameters

    • pathType: string

      either "open" or "closed."

    • start: Vec2

      coordinate to start drawing the arc

    • end: Vec2

      coordinate to finish drawing the arc

    • Optionalwidth,: Vec2

      width and height of the ellipse to draw the arc along

    • rotation: Num

      angle in degrees to rotate ellipse about its center

    • largeArc: Num

      0 to draw shorter of 2 arcs, 1 to draw longer

    • arcSweep: Num

      0 to rotate CCW, 1 to rotate CW

    Returns PathData

    Path data for an arc