RT。。
我的代码:
local points = {
{10, 10}, – point 1
{50, 50}, – point 2
{100, 10}, – point 3 }
local node = display.newPolygon(points,{fillColor = cc.c4f(0, 1.0, 0, 1.0),borderWidth = 1,borderColor = cc.c4f(0, 1.0, 0, 1.0)})
node:setPosition(display.cx,display.cy)
self:addChild(node)
画一个简单的,带边框的三角形。。
无法显示出来。
累啊。。。