quad

v0.1.7
quad(x1, y1, x2, y2, x3, y3, x4, y4);

Draw a quad on the screen.

Arguments

x1The x position of the first point
y1The y position of the first point
x2The x position of the second point
y2The y position of the second point
x3The x position of the third point
y3The y position of the third point
x4The x position of the fourth point
y4The y position of the fourth point

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

function draw()
  background('purple');

  quad(30, 60, 160, 50, 130, 165, 40, 145);
end

Output

See quad in shapes.h