In order to do some colorimetry stuff, these custom structs are very important.
/*
*
* Custom structs for color management.
*
*/
typedef struct {
CGFloat h;
CGFloat s;
CGFloat v;
} COLOR_HSV;
typedef struct {
CGFloat r;
CGFloat g;
CGFloat b;
} COLOR_RGB;
typedef struct {
CGFloat r;
CGFloat g;
CGFloat b;
CGFloat a;
} COLOR_RGBA;
Download the ready-for-use source file (.m) of Helpful Color Struct (RGB, HSV)
No comments:
Post a Comment