Put a void statement into a PGraphics layer

Again, @kfrajer just gave you some example to work with: some kinds of template to build on top of. You can replace the content in his pg.ellipse(float x, float y); by your own code (the one inside your myArc() function).

It stays true. So your original code is almost correct and you just need little change: dropping the circles. in circles.myArc(mouseX, mouseY); and getting rid of circles.beginDraw(); and circles.endDraw(); inside your function.