Doc: Box
Box - draw a box / rectangle
Syntax
Box x1, y1, x2, y2, filled
- x1,y1 : x/y-coordinates of the top / left corner of box.
- x2,y2 : x/y-coordinates of the bottom / right corner of box
- filled : True - box filled, False - outline only
Explanation
Box draws a box (square) or rectangle on the game screen.
Examples
Draw a Box
The example code below draws a box.
SetFPS 60
Do
Cls 0
Box 100, 100, 200, 200, True
Sync
Loop
Related Pages
Colored Box
- Ink - use the Ink command before drawing a box to change it's color
- BoxC - similar to Box but doesn't require Ink to change it's color
Other Primitives
| Categories: Functions : Graphics |