BOX

Compatible with:
DOS Maximite CMM MM150 MM170 MM+ MMX Picromite ArmiteL4 Armite F4 ArmiteH7 Picomite CMM2

Syntax:
BOX x, y, w, h [, lw] [,c] [,fill]
BOX AND_PIXELS x, y, w, h, colour [,pageno]
BOX OR_PIXELS x, y, w, h, colour [,pageno]
BOX XOR_PIXELS x, y, w, h, colour [,pageno]

Description:
Draws a box on the VGA monitor with the top left hand corner at 'x' and 'y' with a width of 'w' pixels and a height of 'h' pixels. 
'lw' is the width of the sides of the box and can be zero. It defaults to 1. 
'c' is the colour and defaults to the default foreground colour if not specified. 
'fill' is the fill colour. It can be omitted or set to -1 in which case the box will not be filled. 
On the CMM2,
All parameters can be expressed as arrays and the software will plot the number of boxes as determined by the dimensions of the smallest array. 
'x', 'y', 'w', and 'h' must all be arrays or all be single variables /constants otherwise an error will be generated.
'lw', 'c', and fill can be either arrays or single variables/constants. 
See the chapter "Basic Drawing Commands" in the CMM2 manual for a definition of the colours and graphics coordinates.

BOX AND_PIXELS x, y, w, h, colour [,pageno] (CMM2 only)
BOX OR_PIXELS x, y, w, h, colour [,pageno]
BOX XOR_PIXELS x, y, w, h, colour [,pageno]
This executes the requested logical operation between the pixels in the area defined on the page specified (defaults to the write page) with the colour specified

 

CLS
BOX 100,100,300,300,5,RGB(GREEN),RGB(RED)

Last edited: 25 February, 2021