BOX

command

Draw a rectangle, optionally filled, or combine a colour with every pixel in a rectangle using AND, OR, or XOR.

BOX x, y, w, h [, lw] [, colour] [, fill] BOX AND_PIXELS x, y, w, h, colour [, page] BOX OR_PIXELS x, y, w, h, colour [, page] BOX XOR_PIXELS x, y, w, h, colour [, page]

x, y - top-left corner w, h - width and height lw - line width (default 1) colour - outline colour (default foreground) fill - fill colour if >= 0 (use RGB(…)); omit for outline only page - page for AND/OR/XOR (default write page)

Example:

BOX 20, 20, 40, 40, 1, RGB(0, 255, 0), RGB(0, 128, 0)
BOX AND_PIXELS 20, 20, 40, 40, RGB(255, 255, 255)
BOX OR_PIXELS 20, 20, 40, 40, RGB(255, 0, 0)
BOX XOR_PIXELS 20, 20, 40, 40, RGB(255, 255, 255)

Source: docs/help/box.txt inmmcore. On the computer, typeHELP BOX.