Macaw OS C reference

Function rectfill

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

Fills a rectangle with one colour.

Parameters

xint
How far its left edge is from the window's left edge, in pixels.
yint
How far its top edge is from the window's top, in pixels.
wint
Its width in pixels.
hint
Its height in pixels.
colourint
The colour to fill it with, from 0 to 255.

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