Macaw OS C reference

Function box

#include <macaw.h>
void box(int x, int y, int w, int h, int fill, int outline);

Draws a filled rectangle with an outline in another 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.
fillint
The colour inside, from 0 to 255.
outlineint
The outline's colour, from 0 to 255, or -1 for no outline.

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