Python Cocos2d Label class is ignoring color -
i'm using python cocos2d game library , in their docs can find cocos.text.label accepts color=rgba(int, int, int, int)
params. i've got following code create label:
self.name = cocos.text.label("test label", font_name='times new roman', font_size=22, color=(163, 42, 44, 1), anchor_x='center', anchor_y='center') self.name.position = (10, 90) self.add(self.name)
this code attached cocos.layer.layer , rendered in scene initiated in director.
the issue this: if remove color
param label label created correctly , displayed white color, if specified color, label never rendered. not black not there.
any on why happening , how change label color appreciated.
i'm using python 3.4.3 , latest version of python-cocos2d. i'm willing update , post code feel free ask. in advance.
maybe can't see label? in rgba goes 0 255. value 1 transparent. try color=(163, 42, 44, 255)
.
Comments
Post a Comment