Macaw OS C reference

Function pset

#include <macaw.h>
void pset(int x, int y, int colour);

Sets one pixel to a colour.

Parameters

xint
How far the pixel is from the window's left edge, in pixels.
yint
How far the pixel is from the window's top, in pixels.
colourint
The colour to set it to, from 0 to 255.

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