4 #pragma warning(disable : 4251) 24 MColor(
unsigned char r,
unsigned char g,
unsigned char b,
unsigned char a);
28 unsigned char red()
const;
29 unsigned char green()
const;
30 unsigned char blue()
const;
31 unsigned char alpha()
const;
38 bool operator==(
const MColor& c)
const;
71 Color(
int r,
int g,
int b,
int a = 255);
80 std::string
name()
const;
81 void setNamedColor(
const std::string&
name);
87 void setOrigin(Origin o);
88 Origin origin()
const;
91 void setAlpha(
int alpha);
93 double alphaF()
const;
94 void setAlphaF(
double alpha);
100 void setGreen(
int green);
101 void setBlue(
int blue);
104 double greenF()
const;
105 double blueF()
const;
106 void setRedF(
double red);
107 void setGreenF(
double green);
108 void setBlueF(
double blue);
110 void getRgb(
int* r,
int* g,
int* b,
int* a = 0)
const;
111 void setRgb(
int r,
int g,
int b,
int a = 255);
113 void getRgbF(
double* r,
double* g,
double* b,
double* a = 0)
const;
114 void setRgbF(
double r,
double g,
double b,
double a = 1.0);
117 int saturation()
const;
121 double saturationF()
const;
122 double valueF()
const;
124 void getHsv(
int* h,
int* s,
int* v,
int* a = 0)
const;
125 void setHsv(
int h,
int s,
int v,
int a = 255);
127 void getHsvF(
double* h,
double* s,
double* v,
double* a = 0)
const;
128 void setHsvF(
double h,
double s,
double v,
double a = 1.0);
135 double cyanF()
const;
136 double magentaF()
const;
137 double yellowF()
const;
138 double blackF()
const;
140 void getCmyk(
int* c,
int* m,
int* y,
int* k,
int* a = 0);
141 void setCmyk(
int c,
int m,
int y,
int k,
int a = 255);
143 void getCmykF(
double* c,
double* m,
double* y,
double* k,
double* a = 0);
144 void setCmykF(
double c,
double m,
double y,
double k,
double a = 1.0);
148 Color toCmyk()
const;
152 static Color fromRgb(
int r,
int g,
int b,
int a = 255);
153 static Color fromRgbF(
double r,
double g,
double b,
double a = 1.0);
155 static Color fromHsv(
int h,
int s,
int v,
int a = 255);
156 static Color fromHsvF(
double h,
double s,
double v,
double a = 1.0);
158 static Color fromCmyk(
int c,
int m,
int y,
int k,
int a = 255);
159 static Color fromCmykF(
double c,
double m,
double y,
double k,
double a = 1.0);
161 Color light(
int f = 150)
const;
162 Color lighter(
int f = 150)
const;
163 Color dark(
int f = 200)
const;
164 Color darker(
int f = 200)
const;
168 bool isEqualIgnoreOrigin(
const Color& c)
const;
169 bool operator==(
const Color& c)
const;
171 bool operator<(
const Color& c)
const;
174 static int toCdwkColor(
const Color& color,
bool* isPrecise = NULL);
176 static Color fromCdwkColor(
const int index);
178 static int maximumCdwkColorNumber();
183 bool isMainLcc()
const;
186 bool isLccSubColor()
const;
198 Color toCdwkOrigin()
const;
199 unsigned int rgb()
const;
200 unsigned int rgba()
const;
unsigned char b
Definition: Color.h:35
unsigned char g
Definition: Color.h:34
unsigned char r
Definition: Color.h:33
std::unique_ptr< CA_ColorP > pCA_ColorP
Definition: Color.h:12
_Vec1 convertTo(const _Vec2 &v)
Definition: Converter.h:96
constexpr bool operator!=(const basic_hashed_string< Char > &lhs, const basic_hashed_string< Char > &rhs) ENTT_NOEXCEPT
Compares two hashed strings.
Definition: entt.hpp:570
Core::PropertyText name
Definition: CoreDocument.h:167
Origin
Definition: Color.h:63
friend std::size_t hash_value(const Color &b)
Definition: Color.h:188
Definition: AbstractConstraint.h:6
unsigned char a
Definition: Color.h:36
Definition: AbstractXMLReader.h:5
Spec
Definition: Color.h:56