cocos2dx之 漸變層

--漸變顏色區域
local startColor  = param and param.startColor or cc.c4b(255, 255, 255, 255)
local endColor    = param and param.endColor or cc.c4b(255, 0, 0, 255)
--漸變層
local layer = cc.LayerGradient:create(startColor, endColor)
self:addChild(layer)
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章