Canvasity.arc

Extend the current subpath with an arc between two angles.

The arc is from the circle centered at the given point and with the given radius. A straight line will be added from the current end point to the starting point of the arc (unless the current path is empty), then the arc along the circle from the starting angle to the ending angle in the given direction will be added.

If they are more than two pi radians apart in the given direction, the arc will stop after one full circle. The point at the ending angle will become the new end point of the path. Initially, the angles are clockwise relative to the x-axis. The current transform at the time that this is called will affect the passed in point, angles, and arc. The radius must be non-negative else it does nothing.

  1. void arc(float x, float y, float radius, float start_angle, float end_angle, bool counter_clockwise)
    struct Canvasity
    nothrow @nogc
    void
    arc
    (
    float x
    ,
    float y
    ,
    float radius
    ,,
    float end_angle
    ,
    bool counter_clockwise = false
    )
  2. void arc(T p, float radius, float start_angle, float end_angle, bool counter_clockwise)
  3. this(Image buffer, CanvasOptions options)
  4. void initialize(Image buffer, CanvasOptions options)

Meta