Bypass navigation menu
RGB Classic Games
Keeping the classics alive
Currently hosting 566 great games!
Return to Chapter 2

DrawBox(X1, Y1, X2, Y2, Color)

Draws a line box from X1, Y1 to X2, Y2 using the specified color.

Parameters

X1 - Upper left horizontal position of box
Y1 - Upper left vertical position of box
X2 - Lower right horizontal position of box
Y2 - Lower right vertical position of box
Color - Color of box

Examples

BASIC

CALL DrawBox(0, 0, 319, 199, 1)

PASCAL

DrawBox(0, 0, 319, 199, 1);