You are here: Lua Scripting Resources eGuide > Lua Scripting API Reference Guide > Graphics Library > drawRect

9.6 drawRect

gc:drawRect(x, y, width, height)

Draws a rectangle at (x, y) with the given pixel width and height. Both width and height must be ≥ 0.

Introduced in platform.apiLevel = '1.0'