a port of the Processing Visualization Language
Name

arc()

Examples
example pic
arc(50, 55, 50, 50, 0, PI/2);

noFill();

arc(50, 55, 60, 60, PI/2, PI);

arc(50, 55, 70, 70, PI, TWO_PI-PI/2);

arc(50, 55, 80, 80, TWO_PI-PI/2, TWO_PI);
Description Draws an arc in the display window. Arcs are drawn along the outer edge of an ellipse defined by the x, y, width and height parameters. The origin or the arc's ellipse may be changed with the ellipseMode() function. The start and stop parameters specify the angles at which to draw the arc.
Syntax
arc(x, y, width, height, start, stop)
Parameters
x int or float: x-coordinate of the arc's ellipse
y int or float: y-coordinate of the arc's ellipse
width int or float: width of the arc's ellipse
height int or float: height of the arc's ellipse
start int or float: angle to start the arc, specified in radians or degrees depending on the current angle mode
stop int or float: angle to stop the arc, specified in radians or degrees depending on the current angle mode
Returns None
Usage Web & Application
Related ellipseMode()
ellipse()

This reference is licensed under the CC BY-NC-SA 2.0 license:

Creative Commons License
Fork me on GitHub