DrawBox

Description

Draws a 2D box from one point on the screen to another with a chosen color using lines. Lines appear above all other drawing except the Print command and can be used with the GetImage function or SetRenderToImage to create new images. The XY coordinates are in screen coordinates so are not affected by the SetViewOffset command. Colors can be created using the MakeColor command or by using the bitwise operators like so, mycolor = (blue << 16) || (green << 8) || red

Definition

DrawBox( x, y, x2, y2, color1, color2, color3, color4, filled )

Parameters