Open In App

p5.js arc() Function

The arc() function is an inbuilt function in p5.js which is used to draw an arc. This function accepts seven parameters which are x-ordinate, y-ordinate, width, height, start, stop and an optional parameter mode.

Syntax:



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

Parameters: This function accepts seven parameters as mentioned above and described below:

References: https://p5js.org/reference/#/p5/arc




Article Tags :