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

9.5 drawPolyLine

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

Draws a series of lines connecting the (x, y) points. The polygon is not closed automatically. The first x-y coordinate pair must be repeated at the end of the array of points to draw a closed polygon.

Introduced in platform.apiLevel = '1.0'