arc

Creates new circle arc shaped sub-path. The arc center is at (cx, cy), the arc radius is r, and the arc is drawn from angle a0 to a1, and swept in direction dir (NVGWinding.CCW, or NVGWinding.CW). Angles are specified in radians.

Arguments: [cx, cy, r, a0, a1]*

mode is: "original", "move", "line" -- first command will be like original NanoVega, MoveTo, or LineTo

  1. void arc(NVGContext ctx, NVGWinding dir, float cx, float cy, float r, float a0, float a1)
  2. void arc(NVGContext ctx, NVGWinding dir, float[] args)
    nothrow @trusted @nogc
    void
    arc
    (
    string mode = "original"
    )

See Also

Meta