Macaw OS C reference

Function tri

#include <macaw.h>
void tri(int x0, int y0, int x1, int y1, int x2, int y2, int colour);

Draws a filled triangle between three corners.

Parameters

x0int
How far the first corner is from the window's left edge, in pixels.
y0int
How far the first corner is from the window's top, in pixels.
x1int
How far the second corner is from the window's left edge, in pixels.
y1int
How far the second corner is from the window's top, in pixels.
x2int
How far the third corner is from the window's left edge, in pixels.
y2int
How far the third corner is from the window's top, in pixels.
colourint
The colour to fill it with, from 0 to 255.

In Drawing, with cls, pset, pget, line, rect, rectfill, circ, circfill, text, textwidth, clip, noclip, camera, box, centertext, shadowtext, textscaled, wraptext, wrapline.