The hex strings are exactly as used for internet colors, in CSS and so on.
Examples for valid hex strings:
NSString *reddishColorWithHalfOpacity = @"#FF05CB77";
NSString *greyColorWithFullOpactiy = @"#CCCCCC";
Example
- (void)loadFromCCB {
CCColor *customColor = [CCColor colorWithHexString:[self customColorString]];
[self drawBorder:customColor];
}
In this example you've created a property on your custom class called customColorString
and set this to a hex string inside your SpriteBuilder project. Your custom class has a drawBorder:
function. By using this technique you can communicate these color values into your class instances without having to implement a SpriteBuilder plugin.