arc(x, y, w, h, start, stop);
Draw an arc on the screen.
Arguments
x
The x position of the arcy
The y position of the arcw
The width of the arch
The height of the arcstart
The angle to start the arcstop
The 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);
end
Output