Function clip
#include <macaw.h>void clip(int x, int y, int w, int h);
Limits drawing to a rectangle, so nothing is drawn outside it. The camera doesn't move the rectangle.
Parameters
xint- How far the rectangle's left edge is from the window's left edge, in pixels.
yint- How far the rectangle's top edge is from the window's top, in pixels.
wint- The rectangle's width in pixels.
hint- The rectangle's height in pixels.
In Drawing, with cls, pset, pget, line, rect, rectfill, circ, circfill, tri, text, textwidth, noclip, camera, box, centertext, shadowtext, textscaled, wraptext, wrapline.