If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Course: Unlisted resources area > Unit 2

Lesson 1: ProcessingJS documentation

arc(x, y, w, h, start, stop)

Draws an arc. It is very similar to an ellipse(), except that the final two parameters, start and stop, decide how much of the ellipse to draw.
Parameters:
NameDescription
xThe x-coordinate of the center of the complete ellipse derived from the arc
yThe y-coordinate of the center of the complete ellipse derived from the arc
widthThe width of the complete ellipse formed by the partial arc
heightThe height of the complete ellipse formed by the partial arc
startThe angle to start the arc at
stopThe angle to stop the arc at
Having trouble drawing an arc? Check out this additional demo: Lots of arcs

Want to join the conversation?

No posts yet.