square

v0.1.7
square(x, y, s);

Draw a square on the screen.

Arguments

xThe x position of the square
yThe y position of the square
sThe size of the square

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

function draw()
  background('purple');

  -- square near the top-left corner
  rect(30, 20, 64);
end

Output

See square in shapes.h