arc(x, y, w, h, start, stop);Draw an arc on the screen.
Arguments
xThe x position of the arcyThe y position of the arcwThe width of the archThe height of the arcstartThe angle to start the arcstopThe angle to stop the arcfunction setup()
createWindow(200, 200);
end
function draw()
background('purple');
local angle = map(mouseX, 0, width, PI, TWO_PI);
arc(100, 100, 64, 64, 0, angle);
endOutput