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

9.9 fillPolygon

gc:fillPolygon({x1, y1, x2, y2, ... xn, yn})

Fills a polygon with the preset color. The array of points bounds the polygon. To set the fill color, see setColorRGB.

Introduced in platform.apiLevel = '1.0'