12 #include "../omw/string.h"
25 Color(uint8_t
r, uint8_t
g, uint8_t
b, uint8_t
a = 0xFF);
27 Color(
const char* css);
38 void set(int32_t rgb);
39 void set(uint8_t
r, uint8_t
g, uint8_t
b, uint8_t
a = 0xFF);
42 void set(
const char* css);
44 void setR(uint8_t value);
45 void setG(uint8_t value);
46 void setB(uint8_t value);
47 void setA(uint8_t value);
53 int32_t
toRGB()
const;
103 constexpr int32_t transparent_argb = 0x00FFFFFF;
104 constexpr int32_t aliceBlue_argb = 0xFFF0F8FF;
105 constexpr int32_t antiqueWhite_argb = 0xFFFAEBD7;
106 constexpr int32_t aqua_argb = 0xFF00FFFF;
107 constexpr int32_t aquamarine_argb = 0xFF7FFFD4;
108 constexpr int32_t azure_argb = 0xFFF0FFFF;
109 constexpr int32_t beige_argb = 0xFFF5F5DC;
110 constexpr int32_t bisque_argb = 0xFFFFE4C4;
111 constexpr int32_t black_argb = 0xFF000000;
112 constexpr int32_t blanchedAlmond_argb = 0xFFFFEBCD;
113 constexpr int32_t blue_argb = 0xFF0000FF;
114 constexpr int32_t blueViolet_argb = 0xFF8A2BE2;
115 constexpr int32_t brown_argb = 0xFFA52A2A;
116 constexpr int32_t burlyWood_argb = 0xFFDEB887;
117 constexpr int32_t cadetBlue_argb = 0xFF5F9EA0;
118 constexpr int32_t chartreuse_argb = 0xFF7FFF00;
119 constexpr int32_t chocolate_argb = 0xFFD2691E;
120 constexpr int32_t coral_argb = 0xFFFF7F50;
121 constexpr int32_t cornflowerBlue_argb = 0xFF6495ED;
122 constexpr int32_t cornsilk_argb = 0xFFFFF8DC;
123 constexpr int32_t crimson_argb = 0xFFDC143C;
124 constexpr int32_t cyan_argb = 0xFF00FFFF;
125 constexpr int32_t darkBlue_argb = 0xFF00008B;
126 constexpr int32_t darkCyan_argb = 0xFF008B8B;
127 constexpr int32_t darkGoldenrod_argb = 0xFFB8860B;
128 constexpr int32_t darkGray_argb = 0xFFA9A9A9;
129 constexpr int32_t darkGreen_argb = 0xFF006400;
130 constexpr int32_t darkKhaki_argb = 0xFFBDB76B;
131 constexpr int32_t darkMagenta_argb = 0xFF8B008B;
132 constexpr int32_t darkOliveGreen_argb = 0xFF556B2F;
133 constexpr int32_t darkOrange_argb = 0xFFFF8C00;
134 constexpr int32_t darkOrchid_argb = 0xFF9932CC;
135 constexpr int32_t darkRed_argb = 0xFF8B0000;
136 constexpr int32_t darkSalmon_argb = 0xFFE9967A;
137 constexpr int32_t darkSeaGreen_argb = 0xFF8FBC8F;
138 constexpr int32_t darkSlateBlue_argb = 0xFF483D8B;
139 constexpr int32_t darkSlateGray_argb = 0xFF2F4F4F;
140 constexpr int32_t darkTurquoise_argb = 0xFF00CED1;
141 constexpr int32_t darkViolet_argb = 0xFF9400D3;
142 constexpr int32_t deepPink_argb = 0xFFFF1493;
143 constexpr int32_t deepSkyBlue_argb = 0xFF00BFFF;
144 constexpr int32_t dimGray_argb = 0xFF696969;
145 constexpr int32_t dodgerBlue_argb = 0xFF1E90FF;
146 constexpr int32_t firebrick_argb = 0xFFB22222;
147 constexpr int32_t floralWhite_argb = 0xFFFFFAF0;
148 constexpr int32_t forestGreen_argb = 0xFF228B22;
149 constexpr int32_t fuchsia_argb = 0xFFFF00FF;
150 constexpr int32_t gainsboro_argb = 0xFFDCDCDC;
151 constexpr int32_t ghostWhite_argb = 0xFFF8F8FF;
152 constexpr int32_t gold_argb = 0xFFFFD700;
153 constexpr int32_t goldenrod_argb = 0xFFDAA520;
154 constexpr int32_t gray_argb = 0xFF808080;
155 constexpr int32_t green_argb = 0xFF008000;
156 constexpr int32_t greenYellow_argb = 0xFFADFF2F;
157 constexpr int32_t honeydew_argb = 0xFFF0FFF0;
158 constexpr int32_t hotPink_argb = 0xFFFF69B4;
159 constexpr int32_t indianRed_argb = 0xFFCD5C5C;
160 constexpr int32_t indigo_argb = 0xFF4B0082;
161 constexpr int32_t ivory_argb = 0xFFFFFFF0;
162 constexpr int32_t khaki_argb = 0xFFF0E68C;
163 constexpr int32_t lavender_argb = 0xFFE6E6FA;
164 constexpr int32_t lavenderBlush_argb = 0xFFFFF0F5;
165 constexpr int32_t lawnGreen_argb = 0xFF7CFC00;
166 constexpr int32_t lemonChiffon_argb = 0xFFFFFACD;
167 constexpr int32_t lightBlue_argb = 0xFFADD8E6;
168 constexpr int32_t lightCoral_argb = 0xFFF08080;
169 constexpr int32_t lightCyan_argb = 0xFFE0FFFF;
170 constexpr int32_t lightGoldenrodYellow_argb = 0xFFFAFAD2;
171 constexpr int32_t lightGray_argb = 0xFFD3D3D3;
172 constexpr int32_t lightGreen_argb = 0xFF90EE90;
173 constexpr int32_t lightPink_argb = 0xFFFFB6C1;
174 constexpr int32_t lightSalmon_argb = 0xFFFFA07A;
175 constexpr int32_t lightSeaGreen_argb = 0xFF20B2AA;
176 constexpr int32_t lightSkyBlue_argb = 0xFF87CEFA;
177 constexpr int32_t lightSlateGray_argb = 0xFF778899;
178 constexpr int32_t lightSteelBlue_argb = 0xFFB0C4DE;
179 constexpr int32_t lightYellow_argb = 0xFFFFFFE0;
180 constexpr int32_t lime_argb = 0xFF00FF00;
181 constexpr int32_t limeGreen_argb = 0xFF32CD32;
182 constexpr int32_t linen_argb = 0xFFFAF0E6;
183 constexpr int32_t magenta_argb = 0xFFFF00FF;
184 constexpr int32_t maroon_argb = 0xFF800000;
185 constexpr int32_t mediumAquamarine_argb = 0xFF66CDAA;
186 constexpr int32_t mediumBlue_argb = 0xFF0000CD;
187 constexpr int32_t mediumOrchid_argb = 0xFFBA55D3;
188 constexpr int32_t mediumPurple_argb = 0xFF9370DB;
189 constexpr int32_t mediumSeaGreen_argb = 0xFF3CB371;
190 constexpr int32_t mediumSlateBlue_argb = 0xFF7B68EE;
191 constexpr int32_t mediumSpringGreen_argb = 0xFF00FA9A;
192 constexpr int32_t mediumTurquoise_argb = 0xFF48D1CC;
193 constexpr int32_t mediumVioletRed_argb = 0xFFC71585;
194 constexpr int32_t midnightBlue_argb = 0xFF191970;
195 constexpr int32_t mintCream_argb = 0xFFF5FFFA;
196 constexpr int32_t mistyRose_argb = 0xFFFFE4E1;
197 constexpr int32_t moccasin_argb = 0xFFFFE4B5;
198 constexpr int32_t navajoWhite_argb = 0xFFFFDEAD;
199 constexpr int32_t navy_argb = 0xFF000080;
200 constexpr int32_t oldLace_argb = 0xFFFDF5E6;
201 constexpr int32_t olive_argb = 0xFF808000;
202 constexpr int32_t oliveDrab_argb = 0xFF6B8E23;
203 constexpr int32_t orange_argb = 0xFFFFA500;
204 constexpr int32_t orangeRed_argb = 0xFFFF4500;
205 constexpr int32_t orchid_argb = 0xFFDA70D6;
206 constexpr int32_t paleGoldenrod_argb = 0xFFEEE8AA;
207 constexpr int32_t paleGreen_argb = 0xFF98FB98;
208 constexpr int32_t paleTurquoise_argb = 0xFFAFEEEE;
209 constexpr int32_t paleVioletRed_argb = 0xFFDB7093;
210 constexpr int32_t papayaWhip_argb = 0xFFFFEFD5;
211 constexpr int32_t peachPuff_argb = 0xFFFFDAB9;
212 constexpr int32_t peru_argb = 0xFFCD853F;
213 constexpr int32_t pink_argb = 0xFFFFC0CB;
214 constexpr int32_t plum_argb = 0xFFDDA0DD;
215 constexpr int32_t powderBlue_argb = 0xFFB0E0E6;
216 constexpr int32_t purple_argb = 0xFF800080;
217 constexpr int32_t red_argb = 0xFFFF0000;
218 constexpr int32_t rosyBrown_argb = 0xFFBC8F8F;
219 constexpr int32_t royalBlue_argb = 0xFF4169E1;
220 constexpr int32_t saddleBrown_argb = 0xFF8B4513;
221 constexpr int32_t salmon_argb = 0xFFFA8072;
222 constexpr int32_t sandyBrown_argb = 0xFFF4A460;
223 constexpr int32_t seaGreen_argb = 0xFF2E8B57;
224 constexpr int32_t seaShell_argb = 0xFFFFF5EE;
225 constexpr int32_t sienna_argb = 0xFFA0522D;
226 constexpr int32_t silver_argb = 0xFFC0C0C0;
227 constexpr int32_t skyBlue_argb = 0xFF87CEEB;
228 constexpr int32_t slateBlue_argb = 0xFF6A5ACD;
229 constexpr int32_t slateGray_argb = 0xFF708090;
230 constexpr int32_t snow_argb = 0xFFFFFAFA;
231 constexpr int32_t springGreen_argb = 0xFF00FF7F;
232 constexpr int32_t steelBlue_argb = 0xFF4682B4;
233 constexpr int32_t tan_argb = 0xFFD2B48C;
234 constexpr int32_t teal_argb = 0xFF008080;
235 constexpr int32_t thistle_argb = 0xFFD8BFD8;
236 constexpr int32_t tomato_argb = 0xFFFF6347;
237 constexpr int32_t turquoise_argb = 0xFF40E0D0;
238 constexpr int32_t violet_argb = 0xFFEE82EE;
239 constexpr int32_t wheat_argb = 0xFFF5DEB3;
240 constexpr int32_t white_argb = 0xFFFFFFFF;
241 constexpr int32_t whiteSmoke_argb = 0xFFF5F5F5;
242 constexpr int32_t yellow_argb = 0xFFFFFF00;
243 constexpr int32_t yellowGreen_argb = 0xFF9ACD32;
393 constexpr int32_t activeBorder_argb = 0xFFB4B4B4;
394 constexpr int32_t activeCaption_argb = 0xFF99B4D1;
395 constexpr int32_t activeCaptionText_argb = 0xFF000000;
396 constexpr int32_t appWorkspace_argb = 0xFFABABAB;
397 constexpr int32_t buttonFace_argb = 0xFFF0F0F0;
398 constexpr int32_t buttonHighlight_argb = 0xFFFFFFFF;
399 constexpr int32_t buttonShadow_argb = 0xFFA0A0A0;
400 constexpr int32_t control_argb = 0xFFF0F0F0;
401 constexpr int32_t controlDark_argb = 0xFFA0A0A0;
402 constexpr int32_t controlDarkDark_argb = 0xFF696969;
403 constexpr int32_t controlLight_argb = 0xFFE3E3E3;
404 constexpr int32_t controlLightLight_argb = 0xFFFFFFFF;
405 constexpr int32_t controlText_argb = 0xFF000000;
406 constexpr int32_t desktop_argb = 0xFF000000;
407 constexpr int32_t gradientActiveCaption_argb = 0xFFB9D1EA;
408 constexpr int32_t gradientInactiveCaption_argb = 0xFFD7E4F2;
409 constexpr int32_t grayText_argb = 0xFF6D6D6D;
410 constexpr int32_t highlight_argb = 0xFF0078D7;
411 constexpr int32_t highlightText_argb = 0xFFFFFFFF;
412 constexpr int32_t hotTrack_argb = 0xFF0066CC;
413 constexpr int32_t inactiveBorder_argb = 0xFFF4F7FC;
414 constexpr int32_t inactiveCaption_argb = 0xFFBFCDDB;
415 constexpr int32_t inactiveCaptionText_argb = 0xFF000000;
416 constexpr int32_t info_argb = 0xFFFFFFE1;
417 constexpr int32_t infoText_argb = 0xFF000000;
418 constexpr int32_t menu_argb = 0xFFF0F0F0;
419 constexpr int32_t menuBar_argb = 0xFFF0F0F0;
420 constexpr int32_t menuHighlight_argb = 0xFF0078D7;
421 constexpr int32_t menuText_argb = 0xFF000000;
422 constexpr int32_t scrollBar_argb = 0xFFC8C8C8;
423 constexpr int32_t window_argb = 0xFFFFFFFF;
424 constexpr int32_t windowFrame_argb = 0xFF646464;
425 constexpr int32_t windowText_argb = 0xFF000000;
466 #endif // IG_OMW_COLOR_H