Macaw OS C reference

Function text

#include <macaw.h>
void text(const char *s, int x, int y, int colour);

Writes text in the built-in font. Each character takes a cell 6 pixels wide and 9 high, and \n starts a new line.

Parameters

sconst char *
The text to write.
xint
How far the text's left edge is from the window's left edge, in pixels.
yint
How far the text's top is from the window's top, in pixels.
colourint
The text's colour, from 0 to 255.

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