CCLayerColorは背景色をかえたいときに使えます。 2012/04/21

cocos2dです。
CCLayerColorは、背景色をまっしろにしたいときに使えます。

CCLayerColor *colorLayer = [CCLayerColor layerWithColor:ccc4(255, 255, 255, 255)]; [self addChild:colorLayer];


ちなみにccc4ってなんだろうということで下記
//! helper macro that creates an ccColor4B type static inline ccColor4B ccc4(const GLubyte r, const GLubyte g, const GLubyte b, const GLubyte o) { ccColor4B c = {r, g, b, o}; return c; }

: