point(x, y);
Draw a point on the screen.
Arguments
x
The pointy
The pointUse 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