|
GColor | operator* (const GColor &c, float factor) |
|
GColor | operator* (const GColor &c1, const GColor &c2) |
|
GColor | operator/ (const GColor &c, float factor) |
|
GColor | operator/ (const GColor &c1, const GColor &c2) |
|
GColor | operator+ (const GColor &c1, const GColor &c2) |
|
GColor | operator- (const GColor &c1, const GColor &c2) |
|
UI_EXP GColor | UtilsColor::HSVColor (float h, float s=1, float v=1, UINT alpha=255) |
|
UI_EXP LPCTSTR | UtilsColor::ParseColor (LPCTSTR lpcolor, LPCTSTR end, GColor *out_color) |
|
UI_EXP bool | UtilsColor::ParseStringToColor (const TCHAR *lpcolor, GColor *color) |
|
UI_EXP BOOL | UtilsColor::ParseHSVColor (LPCTSTR lpcolor, float *h, float *s, float *v, float *alpha) |
|
UI_EXP GColor | UtilsColor::Get24PhaseColor (int i) |
|
UI_EXP void | UtilsColor::RGBToHSV (const GColor &color, float *h, float *s, float *v) |
|
UI_EXP void | UtilsColor::RGBToHSV (float r, float g, float b, float *h, float *s, float *v) |
| RGBToHSV HSVToRGB相互转换
|
|
UI_EXP void | UtilsColor::HSVToRGB (float *r, float *g, float *b, float h, float s, float v) |
|
UI_EXP void | UtilsColor::RGBToHSL (float r, float g, float b, float *h, float *s, float *l) |
| RGBToHSL和HSLToRGB相互转换
|
|
UI_EXP void | UtilsColor::HSLToRGB (float *r, float *g, float *b, float h, float s, float l) |
|
float | UtilsColor::Luminanace (uint8_t r, uint8_t g, uint8_t b) |
| 返回颜色明度值。算法取自国际标准。https://www.w3.org/TR/WCAG/#dfn-relative-luminance
|
|
float | UtilsColor::ContrastRatio (const GColor &c1, const GColor &c2) |
| 对比度
|
|