triangle

v0.1.7
triangle(x1, y1, x2, y2, x3, y3);

Draw a triangle 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

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

function draw()
    background('purple');

    triangle(50, 150, 100, 50, 150, 150);
end

Output

See triangle in shapes.h