I have replaced the code @kfrajer with my own
void myArc(PGraphics circles)
{
//Assuming begin draw has already been called
circles.arc(0, 0, size, size, 0, PI, CHORD);
}
But there still is a problem. Every time Im not clicking the mouse, it is drawing the arc. My desired code wants it to only draw the arc when the mouse is pressed.