2

私は次のことを試しました:

UIColor *c = [UIColor colorWithPatternImage: [UIImage imageNamed: @"gradient.png"]];
CCColor *cc = [CCColor colorWithUIColor: c];
lblLevelName = [CCLabelTTF labelWithString: @"Level" fontName: @"" fontSize: 18.0f];
lblLevelName.anchorPoint = ccp(1.0f, 1.0f);
lblLevelName.position = ccp(screen.width - 20.0f, screen.height - 75.0f);
lblLevelName.fontColor = cc;
[self addChild: lblLevelName];

しかし、グラデーション画像は黄色からオレンジ色でしたが、黒のラベルが表示されます。なにか提案を?

4

0 に答える 0