BOX

This command will draw a filled box on screen in the current ink color.

  Syntax
BOX Left,Top,Right,Bottom
BOX Left, Top, Right, Bottom, Color1, Color2, Color3, Color4
  Parameters
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.

  Returns

This command does not return a value.

  Description

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.

  Example Code
BOX 50,50,100,100,RGB(255,0,0),RGB(0,255,0),RGB(0,0,255),RGB(0,255,255)
WAIT KEY
  See also

BASIC2D Commands Menu
Index