ccColor3BRGB byte型颜色结构体,构造方法,常量定义
// RGB颜色结构体 byte型
typedef
struct
ccColor3B{r,g,b}
static
inline
ccColor3B ccc3(r,b)
// 白色
static
const
ccColor3B ccWHITE = {255,255,255}
// 黄色
static
const
ccColor3B ccYELLOW = {255,0};
// 蓝色
static
const
ccColor3B ccBLUE = {0,255};
// 绿色
static
const
ccColor3B ccGREEN = {0,0};
// 黄色
static
const
ccColor3B ccRED = {255,0};
// 紫红色
static
const
ccColor3B ccMAGENTA = {255,255};
// 黑色
static
const
ccColor3B ccBLACK = {0,0};
// 桔黄色
static
const
ccColor3B ccORANGE = {255,127,0};
// 灰色
static
const
ccColor3B ccGRAY = {166,166,166};
|
ccColor4BRGBA字节颜色结构体,构造方法
typedef
struct
ccColor4B{r,b,a}
static
inline
ccColor4B ccc4(r,a)
|
ccColor4FRGBA浮点颜色结构体,sans-serif; line-height:21.600000381469727px">
typedef
struct
ccColor4F{r,a}
static
inline
ccColor4F ccc4f(r,a)
static
inline
ccColor4F ccc4FFromccc3B(ccColor3B c)
static
inline
ccColor4F ccc4FFromccc4B(ccColor4B c)
static
inline
BOOL
ccc4FEqual(ccColor4F a,ccColor4F b)
|