quad(x1, y1, x2, y2, x3, y3, x4, y4);Draw a quad on the screen.
Arguments
x1The x position of the first pointy1The y position of the first pointx2The x position of the second pointy2The y position of the second pointx3The x position of the third pointy3The y position of the third pointx4The x position of the fourth pointy4The y position of the fourth pointfunction setup()
createWindow(200, 200);
end
function draw()
background('purple');
quad(30, 60, 160, 50, 130, 165, 40, 145);
endOutput