Using void in PGraphics

try:

if(mousePressed){
  myArc(mouseX, mouseY);
}