|
BOX
This command will draw a filled box on screen in the current ink color.
BOX Left,Top,Right,Bottom
BOX Left, Top, Right, Bottom, Color1, Color2, Color3, Color4
Left
Integer
This value specifies the top left corners X coordinate.
Top
Integer
This value specifies the top left corners y coordinate.
Right
Integer
This value specifies the bottom right corners X coordinate.
Bottom
Integer
This value specifies the bottom right corners y coordinate.
Color1
Dword
This value is returned from using the RGB(red,green,blue) command.
Color2
Dword
This value is returned from using the RGB(red,green,blue) command.
Color3
Dword
This value is returned from using the RGB(red,green,blue) command.
Color4
Dword
This value is returned from using the RGB(red,green,blue) command.
This command does not return a value.
The command requires the top left and bottom right coordinates of the box. You can also draw to a bitmap, by using the SET CURRENT BITMAP command.
BOX 50,50,100,100,RGB(255,0,0),RGB(0,255,0),RGB(0,0,255),RGB(0,255,255)
WAIT KEY
BASIC2D Commands Menu
Index
|