FadeTransition uses a new color scheme that I'm not used to, at least in the examples I have been using... Is there any help on ccColor3B and how to use it instead of RGB?
Thanks. Just point me in the right direction.
A fast, easy to use, free, and community supported 2D game engine
FadeTransition uses a new color scheme that I'm not used to, at least in the examples I have been using... Is there any help on ccColor3B and how to use it instead of RGB?
Thanks. Just point me in the right direction.
hi!
in cctypes.h :
typedef struct _ccColor3B
{
GLubyte r;
GLubyte g;
GLubyte b;
} ccColor3B;
//! helper macro that creates an ccColor3B type
static inline ccColor3B
ccc3(const GLubyte r, const GLubyte g, const GLubyte b)
{
ccColor3B c = {r, g, b};
return c;
}
so if you wanted you could define your own like:
//ccColor3B predefined colors
//! White color (255,255,255)
static const ccColor3B ccWHITE={255,255,255};thanks, I found that too ... Just discovered the "jump to definition" on the context menu... I told you I was a noob! :-)
It forced me to make that change in the fadeTransitions from the menus, now on 0.8 instead of RC.
Since setRGB is depreciated this is quite useful, thanks - that's new info for me and I'm sure it will be helpful..
Added tags, to make it easier to find for others...
You must log in to post.