arc

v0.1.7
arc(x, y, w, h, start, stop);

Draw an arc on the screen.

Arguments

xThe x position of the arc
yThe y position of the arc
wThe width of the arc
hThe height of the arc
startThe angle to start the arc
stopThe angle to stop the arc

function 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

See arc in shapes.h