線條 (Line)

基本的線條透過兩個座標建立,但你也可以指定多個座標畫出折線。以下的例子裡便是使用多個點畫出五芒星:

local star = display.newLine( 200, 90, 227, 165 )
star:append( 305,165, 243,216, 265,290, 200,245, 135,290, 157,215, 95,165, 173,165, 200,90 )
star.stroke = { 1, 0, 0, 1 }
star.strokeWidth = 8

results matching ""

    No results matching ""