point

v0.1.7
point(x, y);

Draw a point on the screen.

Arguments

xThe point
yThe point

Use stroke to set the point's color, and use strokeWeight to set the point's radius.

Setting the color with fill will not affect point

function setup()
    createWindow(200, 200);
end

function draw()
    background('purple');

    strokeWeight(4);
    stroke('white');

    point(width/2, height/2);
end

Output

See point in shapes.h