Function circularArc

Return path data that describes a circular arc.

  • Parameters

    • pathType: string

      either "open" or "closed."

    • center: Vec2

      circle center

    • r: Num

      circle radius

    • theta0: Num

      start angle in radians

    • theta1: Num

      end angle in radians

    Returns PathData

    Path data for a circular arc