GLBasic User Manual

Main sections

DRAWRECT

DRAWRECT sx%, sy%, w%, h%, color%



Draws a filled rectangle with given color. Upper left corner = (sx%, sy%), width=w% and height=h%.

Sample:
 
DRAWRECT 50, 0, 50, 120, RGB(255, 255, 0) // Yellow
SHOWSCREEN
MOUSEWAIT

See also...