square(x, y, s);
Draw a square on the screen.
Arguments
x
The x position of the squarey
The y position of the squares
The size of the squarefunction setup()
createWindow(200, 200);
end
function draw()
background('purple');
-- square near the top-left corner
rect(30, 20, 64);
end
Output