size(500, 500); int numSlices = 10; float theta = TWO_PI / numSlices; for (int j = 0; j < numSlices-1; j++) { arc(width/2, height/2, 0.75*width, 0.75*width, j*theta, (j+1)*theta, PIE); }