Draw_Box(X1, Y1, X2, Y2, Color, Filled)
Draw_Box is a call that draws a rectangle on the screen. It has 6 required parameters:
(X1, Y1) is any corner of the rectangle
(X2, Y2) is the opposite corner of the rectangle
Color is a parameter that specifies a color
Filled can be either True (also Filled or Yes) or False (also Unfilled or No). If True, the rectangle will be filled in with the given color. If False, the rectangle will be drawn with no internal fill.
Note: A graphics window must be open when Draw_Box is called or a run-time error will occur.
Examples:
Draw_Box(50,150,250,25,Green,True)
draws a solid green rectangle with upper left corner at (50,150) and lower right corner at (250,25). Note that the programmer may also specify the lower left and upper right corners (not necessarily in that order) as shown in the example below, in which the rectangle is drawn in the same location as the rectangle above, but is not filled:
Draw_Box(250,150,50,25,Green,False)