Type Function Object LineObject Library display.* Return value none Revision Release 2022.3683 Keywords append, line append, add line See also display.newLine()
Append one or more segments to an existing object created using display.newLine().
LineObject:append( x, y [, ... ] )
Numbers. One or more [x,y]
pairs specifying a new point to extent the existing line.
local star = display.newLine( 0,-110, 27,-35 ) star:append( 105,-35, 43,16, 65,90, 0,45, -65,90, -43,15, -105,-35, -27,-35, 0,-110 ) star:setStrokeColor( 0, 0, 1 ) star.strokeWidth = 5