cc.Label 改变颜色


cc.Label 改变颜色

1
2
3
4
5
6
7
8
var node = new cc.Node("Holle,Word!");
var label = node.addComponent(cc.Label);
this.node.addChild(node);
node.x = 0;
node.y = 0;
node.color = new cc.Color(225, 255, 0);
label.fontSize = 60;
label.string = "Test";