GBOX and GFILL (Command)

and  are very similar statements; the first draws the outline, 1 pixel wide, of a rectangle, and the second fills a rectangle. The rectangle is drawn on the currently selected graphics page.

If given 4 parameters,, the corners of the rectangle will be at coordinates , , , and.

If given 5 parameters, the first 4 will be as above, and the fifth will be the colour the rectangle is drawn in. If the fifth parameter is omitted, the currently selected colour is used.