I am building an android app.....
I tried using cc.color(,,)
but isnt working as expected...
Could someone tell me how to change the layer background colour??
Thanks.
var GameScene = cc.Scene.extend({
onEnter:function () {
this._super();
var layer = new GameLayer();
this.addChild(layer);
backgroundLayer = new cc.LayerColor.create();
backgroundLayer.changeWidthAndHeight(winSize.width, winSize.height);
backgroundLayer.setColor(cc.c3b(144, 192, 248));
layer.addChild(backgroundLayer);
backgroundLayer.setPosition(cc.p(winSize.width * 0.5, winSize.height * 0.5));
}
});