Introduction to Arcs
Source: http://p5js.org/reference
Syntax arc(a, b, c, d, start, stop); Parameters a float: x-coordinate of the arc's ellipse (center) b float: y-coordinate of the arc's ellipse (center) c float: width of the arc's ellipse by default d float: height of the arc's ellipse by default start float: angle to start the arc, specified in radians stop float: angle to stop the arc, specified in radians example on top right: createCanvas(400, 400); arc(200, 200, 200, 200, radians(0), radians(250)); examples from class: createCanvas(400, 400); //open arc in the middle arc(100,100,75,75,radians(0),radians(180),OPEN); //pie shaped arc on bottom arc(200,200,100,100,radians(0),radians(270),PIE); noStroke(); // removes the border line // noFill(); uncomment this to remove the white fill //top-left arc arc(50,50,100,100,radians(180),radians(350),OPEN); |