Macaw OS C reference

Function cls

#include <macaw.h>
void cls(int colour);

Fills the whole window, or the picture you're drawing into, with one colour. It stays inside the clip rectangle, and the camera doesn't move it.

Parameters

colourint
The colour to fill it with, from 0 to 255.

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