color.h
1/*
2** ClanLib SDK
3** Copyright (c) 1997-2020 The ClanLib Team
4**
5** This software is provided 'as-is', without any express or implied
6** warranty. In no event will the authors be held liable for any damages
7** arising from the use of this software.
8**
9** Permission is granted to anyone to use this software for any purpose,
10** including commercial applications, and to alter it and redistribute it
11** freely, subject to the following restrictions:
12**
13** 1. The origin of this software must not be misrepresented; you must not
14** claim that you wrote the original software. If you use this software
15** in a product, an acknowledgment in the product documentation would be
16** appreciated but is not required.
17** 2. Altered source versions must be plainly marked as such, and must not be
18** misrepresented as being the original software.
19** 3. This notice may not be removed or altered from any source distribution.
20**
21** Note: Some of the libraries ClanLib may link to may have additional
22** requirements or restrictions.
23**
24** File Author(s):
25**
26** Magnus Norddahl
27** Harry Storbacka
28** Mark Page
29*/
30
31#pragma once
32
33#include "../../Core/Math/vec4.h"
34#include <vector>
35
36namespace clan
37{
40
41 class PixelFormat;
42 class Colorf;
43
45 class Color : public Vec4ub
46 {
47 public:
49 Color() {}
50
51 explicit Color(const Colorf&);
52
62 Color(unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha = 255)
63 : Vec4ub(red, green, blue, alpha) { return; }
64
71 Color(const std::string &hexstr);
72
74 unsigned char get_alpha() const { return a; }
75
77 unsigned char get_red() const { return r; }
78
80 unsigned char get_green() const { return g; }
81
83 unsigned char get_blue() const { return b; }
84
86 float get_alpha_f() const { return float(a) / 255.0f; }
87
89 float get_red_f() const { return float(r) / 255.0f; }
90
92 float get_green_f() const { return float(g) / 255.0f; }
93
95 float get_blue_f() const { return float(b) / 255.0f; }
96
98 unsigned int get_argb8() const { return (((unsigned int)a) << 24) | (((unsigned int)r) << 16) | (((unsigned int)g) << 8) | (unsigned int)b; }
99
101 unsigned int get_abgr8() const { return (((unsigned int)a) << 24) | (((unsigned int)b) << 16) | (((unsigned int)g) << 8) | (unsigned int)r; }
102
104 unsigned int get_bgr8() const { return (((unsigned int)b) << 16) | (((unsigned int)g) << 8) | (unsigned int)r; }
105
107 unsigned int get_rgba8() const { return (((unsigned int)r) << 24) | (((unsigned int)g) << 16) | (((unsigned int)b) << 8) | (unsigned int)a; }
108
110 unsigned int get_bgra8() const { return (((unsigned int)b) << 24) | (((unsigned int)g) << 16) | (((unsigned int)r) << 8) | (unsigned int)a; }
111
112 // Operations:
113 public:
115 bool operator==(const Color &c) const
116 {
117 return (r == c.r) && (g == c.g) && (b == c.b) && (a == c.a);
118 }
119
121 bool operator!=(const Color &c) const
122 {
123 return (r != c.r) || (g != c.g) || (b != c.b) || (a != c.a);
124 }
125
127 //[[deprecated("Please use StandardColor::aliceblue() instead")]]
129
131 //[[deprecated("Please use StandardColor::antiquewhite() instead")]]
133
135 //[[deprecated("Please use StandardColor::aqua() instead")]]
136 static Color aqua;
137
139 //[[deprecated("Please use StandardColor::aquamarine() instead")]]
141
143 //[[deprecated("Please use StandardColor::azure() instead")]]
144 static Color azure;
145
147 //[[deprecated("Please use StandardColor::beige() instead")]]
148 static Color beige;
149
151 //[[deprecated("Please use StandardColor::bisque() instead")]]
152 static Color bisque;
153
155 //[[deprecated("Please use StandardColor::black() instead")]]
156 static Color black;
157
159 //[[deprecated("Please use StandardColor::blanchedalmond() instead")]]
161
163 //[[deprecated("Please use StandardColor::blue() instead")]]
164 static Color blue;
165
167 //[[deprecated("Please use StandardColor::blueviolet() instead")]]
169
171 //[[deprecated("Please use StandardColor::brown() instead")]]
172 static Color brown;
173
175 //[[deprecated("Please use StandardColor::burlywood() instead")]]
177
179 //[[deprecated("Please use StandardColor::cadetblue() instead")]]
181
183 //[[deprecated("Please use StandardColor::chartreuse() instead")]]
185
187 //[[deprecated("Please use StandardColor::chocolate() instead")]]
189
191 //[[deprecated("Please use StandardColor::coral() instead")]]
192 static Color coral;
193
195 //[[deprecated("Please use StandardColor::cornflowerblue() instead")]]
197
199 //[[deprecated("Please use StandardColor::cornsilk() instead")]]
201
203 //[[deprecated("Please use StandardColor::crimson() instead")]]
205
207 //[[deprecated("Please use StandardColor::cyan() instead")]]
208 static Color cyan;
209
211 //[[deprecated("Please use StandardColor::darkblue() instead")]]
213
215 //[[deprecated("Please use StandardColor::darkcyan() instead")]]
217
219 //[[deprecated("Please use StandardColor::darkgoldenrod() instead")]]
221
223 //[[deprecated("Please use StandardColor::darkgray() instead")]]
225
227 //[[deprecated("Please use StandardColor::darkgreen() instead")]]
229
231 //[[deprecated("Please use StandardColor::darkgrey() instead")]]
233
235 //[[deprecated("Please use StandardColor::darkkhaki() instead")]]
237
239 //[[deprecated("Please use StandardColor::darkmagenta() instead")]]
241
243 //[[deprecated("Please use StandardColor::darkolivegreen() instead")]]
245
247 //[[deprecated("Please use StandardColor::darkorange() instead")]]
249
251 //[[deprecated("Please use StandardColor::darkorchid() instead")]]
253
255 //[[deprecated("Please use StandardColor::darkred() instead")]]
257
259 //[[deprecated("Please use StandardColor::darksalmon() instead")]]
261
263 //[[deprecated("Please use StandardColor::darkseagreen() instead")]]
265
267 //[[deprecated("Please use StandardColor::darkslateblue() instead")]]
269
271 //[[deprecated("Please use StandardColor::darkslategray() instead")]]
273
275 //[[deprecated("Please use StandardColor::darkslategrey() instead")]]
277
279 //[[deprecated("Please use StandardColor::darkturquoise() instead")]]
281
283 //[[deprecated("Please use StandardColor::darkviolet() instead")]]
285
287 //[[deprecated("Please use StandardColor::deeppink() instead")]]
289
291 //[[deprecated("Please use StandardColor::deepskyblue() instead")]]
293
295 //[[deprecated("Please use StandardColor::dimgray() instead")]]
297
299 //[[deprecated("Please use StandardColor::dimgrey() instead")]]
301
303 //[[deprecated("Please use StandardColor::dodgerblue() instead")]]
305
307 //[[deprecated("Please use StandardColor::firebrick() instead")]]
309
311 //[[deprecated("Please use StandardColor::floralwhite() instead")]]
313
315 //[[deprecated("Please use StandardColor::forestgreen() instead")]]
317
319 //[[deprecated("Please use StandardColor::fuchsia() instead")]]
321
323 //[[deprecated("Please use StandardColor::gainsboro() instead")]]
325
327 //[[deprecated("Please use StandardColor::ghostwhite() instead")]]
329
331 //[[deprecated("Please use StandardColor::gold() instead")]]
332 static Color gold;
333
335 //[[deprecated("Please use StandardColor::goldenrod() instead")]]
337
339 //[[deprecated("Please use StandardColor::gray() instead")]]
340 static Color gray;
341
343 //[[deprecated("Please use StandardColor::grey() instead")]]
344 static Color grey;
345
347 //[[deprecated("Please use StandardColor::green() instead")]]
348 static Color green;
349
351 //[[deprecated("Please use StandardColor::greenyellow() instead")]]
353
355 //[[deprecated("Please use StandardColor::honeydew() instead")]]
357
359 //[[deprecated("Please use StandardColor::hotpink() instead")]]
361
363 //[[deprecated("Please use StandardColor::indianred() instead")]]
365
367 //[[deprecated("Please use StandardColor::indigo() instead")]]
368 static Color indigo;
369
371 //[[deprecated("Please use StandardColor::ivory() instead")]]
372 static Color ivory;
373
375 //[[deprecated("Please use StandardColor::khaki() instead")]]
376 static Color khaki;
377
379 //[[deprecated("Please use StandardColor::lavender() instead")]]
381
383 //[[deprecated("Please use StandardColor::lavenderblush() instead")]]
385
387 //[[deprecated("Please use StandardColor::lawngreen() instead")]]
389
391 //[[deprecated("Please use StandardColor::lemonchiffon() instead")]]
393
395 //[[deprecated("Please use StandardColor::lightblue() instead")]]
397
399 //[[deprecated("Please use StandardColor::lightcoral() instead")]]
401
403 //[[deprecated("Please use StandardColor::lightcyan() instead")]]
405
407 //[[deprecated("Please use StandardColor::lightgoldenrodyellow() instead")]]
409
411 //[[deprecated("Please use StandardColor::lightgray() instead")]]
413
415 //[[deprecated("Please use StandardColor::lightgreen() instead")]]
417
419 //[[deprecated("Please use StandardColor::lightgrey() instead")]]
421
423 //[[deprecated("Please use StandardColor::lightpink() instead")]]
425
427 //[[deprecated("Please use StandardColor::lightsalmon() instead")]]
429
431 //[[deprecated("Please use StandardColor::lightseagreen() instead")]]
433
435 //[[deprecated("Please use StandardColor::lightskyblue() instead")]]
437
439 //[[deprecated("Please use StandardColor::lightslategray() instead")]]
441
443 //[[deprecated("Please use StandardColor::lightslategrey() instead")]]
445
447 //[[deprecated("Please use StandardColor::lightsteelblue() instead")]]
449
451 //[[deprecated("Please use StandardColor::lightyellow() instead")]]
453
455 //[[deprecated("Please use StandardColor::lime() instead")]]
456 static Color lime;
457
459 //[[deprecated("Please use StandardColor::limegreen() instead")]]
461
463 //[[deprecated("Please use StandardColor::linen() instead")]]
464 static Color linen;
465
467 //[[deprecated("Please use StandardColor::magenta() instead")]]
469
471 //[[deprecated("Please use StandardColor::maroon() instead")]]
472 static Color maroon;
473
475 //[[deprecated("Please use StandardColor::mediumaquamarine() instead")]]
477
479 //[[deprecated("Please use StandardColor::mediumblue() instead")]]
481
483 //[[deprecated("Please use StandardColor::mediumorchid() instead")]]
485
487 //[[deprecated("Please use StandardColor::mediumpurple() instead")]]
489
491 //[[deprecated("Please use StandardColor::mediumseagreen() instead")]]
493
495 //[[deprecated("Please use StandardColor::mediumslateblue() instead")]]
497
499 //[[deprecated("Please use StandardColor::mediumspringgreen() instead")]]
501
503 //[[deprecated("Please use StandardColor::mediumturquoise() instead")]]
505
507 //[[deprecated("Please use StandardColor::mediumvioletred() instead")]]
509
511 //[[deprecated("Please use StandardColor::midnightblue() instead")]]
513
515 //[[deprecated("Please use StandardColor::mintcream() instead")]]
517
519 //[[deprecated("Please use StandardColor::mistyrose() instead")]]
521
523 //[[deprecated("Please use StandardColor::moccasin() instead")]]
525
527 //[[deprecated("Please use StandardColor::navajowhite() instead")]]
529
531 //[[deprecated("Please use StandardColor::navy() instead")]]
532 static Color navy;
533
535 //[[deprecated("Please use StandardColor::oldlace() instead")]]
537
539 //[[deprecated("Please use StandardColor::olive() instead")]]
540 static Color olive;
541
543 //[[deprecated("Please use StandardColor::olivedrab() instead")]]
545
547 //[[deprecated("Please use StandardColor::orange() instead")]]
548 static Color orange;
549
551 //[[deprecated("Please use StandardColor::orangered() instead")]]
553
555 //[[deprecated("Please use StandardColor::orchid() instead")]]
556 static Color orchid;
557
559 //[[deprecated("Please use StandardColor::palegoldenrod() instead")]]
561
563 //[[deprecated("Please use StandardColor::palegreen() instead")]]
565
567 //[[deprecated("Please use StandardColor::paleturquoise() instead")]]
569
571 //[[deprecated("Please use StandardColor::palevioletred() instead")]]
573
575 //[[deprecated("Please use StandardColor::papayawhip() instead")]]
577
579 //[[deprecated("Please use StandardColor::peachpuff() instead")]]
581
583 //[[deprecated("Please use StandardColor::peru() instead")]]
584 static Color peru;
585
587 //[[deprecated("Please use StandardColor::pink() instead")]]
588 static Color pink;
589
591 //[[deprecated("Please use StandardColor::plum() instead")]]
592 static Color plum;
593
595 //[[deprecated("Please use StandardColor::powderblue() instead")]]
597
599 //[[deprecated("Please use StandardColor::purple() instead")]]
600 static Color purple;
601
603 //[[deprecated("Please use StandardColor::red() instead")]]
604 static Color red;
605
607 //[[deprecated("Please use StandardColor::rosybrown() instead")]]
609
611 //[[deprecated("Please use StandardColor::royalblue() instead")]]
613
615 //[[deprecated("Please use StandardColor::saddlebrown() instead")]]
617
619 //[[deprecated("Please use StandardColor::salmon() instead")]]
620 static Color salmon;
621
623 //[[deprecated("Please use StandardColor::sandybrown() instead")]]
625
627 //[[deprecated("Please use StandardColor::seagreen() instead")]]
629
631 //[[deprecated("Please use StandardColor::seashell() instead")]]
633
635 //[[deprecated("Please use StandardColor::sienna() instead")]]
636 static Color sienna;
637
639 //[[deprecated("Please use StandardColor::silver() instead")]]
640 static Color silver;
641
643 //[[deprecated("Please use StandardColor::skyblue() instead")]]
645
647 //[[deprecated("Please use StandardColor::slateblue() instead")]]
649
651 //[[deprecated("Please use StandardColor::slategray() instead")]]
653
655 //[[deprecated("Please use StandardColor::slategrey() instead")]]
657
659 //[[deprecated("Please use StandardColor::snow() instead")]]
660 static Color snow;
661
663 //[[deprecated("Please use StandardColor::springgreen() instead")]]
665
667 //[[deprecated("Please use StandardColor::steelblue() instead")]]
669
671 //[[deprecated("Please use StandardColor::tan() instead")]]
672 static Color tan;
673
675 //[[deprecated("Please use StandardColor::teal() instead")]]
676 static Color teal;
677
679 //[[deprecated("Please use StandardColor::thistle() instead")]]
681
683 //[[deprecated("Please use StandardColor::tomato() instead")]]
684 static Color tomato;
685
687 //[[deprecated("Please use StandardColor::turquoise() instead")]]
689
691 //[[deprecated("Please use StandardColor::violet() instead")]]
692 static Color violet;
693
695 //[[deprecated("Please use StandardColor::wheat() instead")]]
696 static Color wheat;
697
699 //[[deprecated("Please use StandardColor::white() instead")]]
700 static Color white;
701
703 //[[deprecated("Please use StandardColor::whitesmoke() instead")]]
705
707 //[[deprecated("Please use StandardColor::yellow() instead")]]
708 static Color yellow;
709
711 //[[deprecated("Please use StandardColor::yellowgreen() instead")]]
713
715 //[[deprecated("Please use StandardColor::transparent() instead")]]
717
718 //[[deprecated("Please use StandardColor::gray10() instead")]]
719 static Color gray10;
720
721 //[[deprecated("Please use StandardColor::gray20() instead")]]
722 static Color gray20;
723
724 //[[deprecated("Please use StandardColor::gray30() instead")]]
725 static Color gray30;
726
727 //[[deprecated("Please use StandardColor::gray40() instead")]]
728 static Color gray40;
729
730 //[[deprecated("Please use StandardColor::gray50() instead")]]
731 static Color gray50;
732
733 //[[deprecated("Please use StandardColor::gray60() instead")]]
734 static Color gray60;
735
736 //[[deprecated("Please use StandardColor::gray70() instead")]]
737 static Color gray70;
738
739 //[[deprecated("Please use StandardColor::gray80() instead")]]
740 static Color gray80;
741
742 //[[deprecated("Please use StandardColor::gray90() instead")]]
743 static Color gray90;
744
746 void set_alpha(unsigned char value) { a = value; }
747
749 void set_red(unsigned char value) { r = value; }
750
752 void set_green(unsigned char value) { g = value; }
753
755 void set_blue(unsigned char value) { b = value; }
756
758 void set_alpha_f(float value) { a = (unsigned char) (value*255.0f); }
759
761 void set_red_f(float value) { r = (unsigned char) (value*255.0f); }
762
764 void set_green_f(float value) { g = (unsigned char) (value*255.0f); }
765
767 void set_blue_f(float value) { b = (unsigned char) (value*255.0f); }
768
770 void set_color(unsigned char new_red, unsigned char new_green, unsigned char new_blue, unsigned char new_alpha = 255)
771 { r = new_red; g = new_green; b = new_blue; a = new_alpha; }
772
774 void set_rgba8(unsigned int color);
775
777 void set_bgra8(unsigned int color);
778
780 void set_rgb8(unsigned int color);
781
783 void set_argb8(unsigned int color);
784
786 void set_colorf(float new_red, float new_green, float new_blue, float new_alpha = 1.0f)
787 {
788 r = (unsigned char) (new_red * 255.0f);
789 g = (unsigned char) (new_green * 255.0f);
790 b = (unsigned char) (new_blue * 255.0f);
791 a = (unsigned char) (new_alpha * 255.0f);
792 }
793
795 };
796
798 class Colorf : public Vec4f
799 {
800 public:
802 Colorf() : Vec4f(0.0f, 0.0f, 0.0f, 0.0f)
803 {
804 }
805
815 Colorf(float r, float g, float b, float a = 1.0f) : Vec4f(r,g,b,a)
816 {
817 }
818
825 Colorf(const float *array_rgba)
826 : Vec4f((array_rgba[0]), (array_rgba[1]), (array_rgba[2]), (array_rgba[3]))
827 {
828 }
829
834 {
835 }
836
846 Colorf(unsigned char r, unsigned char g, unsigned char b, unsigned char a=255)
847 : Vec4f((r/255.0f), (g/255.0f), (b/255.0f), (a/255.0f))
848 {
849 }
850
860 Colorf(int r, int g, int b, int a=255)
861 : Vec4f((r/255.0f), (g/255.0f), (b/255.0f), (a/255.0f))
862 {
863 }
864
865 explicit Colorf(const Color& color)
866 : Vec4f((color.get_red()/255.0f), (color.get_green()/255.0f), (color.get_blue()/255.0f), (color.get_alpha()/255.0f))
867 {
868 }
869
873 Colorf(const std::string &hexstr)
874 {
875 Colorf::find_color(hexstr, *this);
876 }
877
881 float get_red() const { return r; }
882
886 float get_green() const { return g; }
887
891 float get_blue() const { return b; }
892
896 float get_alpha() const { return a; }
897
900 {
901 r = (r < 0.0f) ? 0.0f : ((r > 1.0f) ? 1.0f : r);
902 g = (g < 0.0f) ? 0.0f : ((g > 1.0f) ? 1.0f : g);
903 b = (b < 0.0f) ? 0.0f : ((b > 1.0f) ? 1.0f : b);
904 a = (a < 0.0f) ? 0.0f : ((a > 1.0f) ? 1.0f : a);
905 }
906
908 void set_alpha(float value) { a = value; }
909
911 void set_red(float value) { r = value; }
912
914 void set_green(float value) { g= value; }
915
917 void set_blue(float value) { b = value; }
918
920 bool operator==(const Colorf &c) const
921 {
922 return (r == c.r) && (g == c.g) && (b == c.b) && (a == c.a);
923 }
924
926 bool operator!=(const Colorf &c) const
927 {
928 return (r != c.r) || (g != c.g) || (b != c.b) || (a != c.a);
929 }
930
932 operator Color() const
933 {
934 return Color(*this);
935 }
936
943 static bool find_color(const std::string &name, Colorf &out_color);
944
946 //[[deprecated("Please use StandardColorf::aliceblue() instead")]]
948
950 //[[deprecated("Please use StandardColorf::antiquewhite() instead")]]
952
954 //[[deprecated("Please use StandardColorf::aqua() instead")]]
955 static Colorf aqua;
956
958 //[[deprecated("Please use StandardColorf::aquamarine() instead")]]
960
962 //[[deprecated("Please use StandardColorf::azure() instead")]]
963 static Colorf azure;
964
966 //[[deprecated("Please use StandardColorf::beige() instead")]]
967 static Colorf beige;
968
970 //[[deprecated("Please use StandardColorf::bisque() instead")]]
972
974 //[[deprecated("Please use StandardColorf::black() instead")]]
975 static Colorf black;
976
978 //[[deprecated("Please use StandardColorf::blanchedalmond() instead")]]
980
982 //[[deprecated("Please use StandardColorf::blue() instead")]]
983 static Colorf blue;
984
986 //[[deprecated("Please use StandardColorf::blueviolet() instead")]]
988
990 //[[deprecated("Please use StandardColorf::brown() instead")]]
991 static Colorf brown;
992
994 //[[deprecated("Please use StandardColorf::burlywood() instead")]]
996
998 //[[deprecated("Please use StandardColorf::cadetblue() instead")]]
1000
1002 //[[deprecated("Please use StandardColorf::chartreuse() instead")]]
1004
1006 //[[deprecated("Please use StandardColorf::chocolate() instead")]]
1008
1010 //[[deprecated("Please use StandardColorf::coral() instead")]]
1012
1014 //[[deprecated("Please use StandardColorf::cornflowerblue() instead")]]
1016
1018 //[[deprecated("Please use StandardColorf::cornsilk() instead")]]
1020
1022 //[[deprecated("Please use StandardColorf::crimson() instead")]]
1024
1026 //[[deprecated("Please use StandardColorf::cyan() instead")]]
1027 static Colorf cyan;
1028
1030 //[[deprecated("Please use StandardColorf::darkblue() instead")]]
1032
1034 //[[deprecated("Please use StandardColorf::darkcyan() instead")]]
1036
1038 //[[deprecated("Please use StandardColorf::darkgoldenrod() instead")]]
1040
1042 //[[deprecated("Please use StandardColorf::darkgray() instead")]]
1044
1046 //[[deprecated("Please use StandardColorf::darkgreen() instead")]]
1048
1050 //[[deprecated("Please use StandardColorf::darkgrey() instead")]]
1052
1054 //[[deprecated("Please use StandardColorf::darkkhaki() instead")]]
1056
1058 //[[deprecated("Please use StandardColorf::darkmagenta() instead")]]
1060
1062 //[[deprecated("Please use StandardColorf::darkolivegreen() instead")]]
1064
1066 //[[deprecated("Please use StandardColorf::darkorange() instead")]]
1068
1070 //[[deprecated("Please use StandardColorf::darkorchid() instead")]]
1072
1074 //[[deprecated("Please use StandardColorf::darkred() instead")]]
1076
1078 //[[deprecated("Please use StandardColorf::darksalmon() instead")]]
1080
1082 //[[deprecated("Please use StandardColorf::darkseagreen() instead")]]
1084
1086 //[[deprecated("Please use StandardColorf::darkslateblue() instead")]]
1088
1090 //[[deprecated("Please use StandardColorf::darkslategray() instead")]]
1092
1094 //[[deprecated("Please use StandardColorf::darkslategrey() instead")]]
1096
1098 //[[deprecated("Please use StandardColorf::darkturquoise() instead")]]
1100
1102 //[[deprecated("Please use StandardColorf::darkviolet() instead")]]
1104
1106 //[[deprecated("Please use StandardColorf::deeppink() instead")]]
1108
1110 //[[deprecated("Please use StandardColorf::deepskyblue() instead")]]
1112
1114 //[[deprecated("Please use StandardColorf::dimgray() instead")]]
1116
1118 //[[deprecated("Please use StandardColorf::dimgrey() instead")]]
1120
1122 //[[deprecated("Please use StandardColorf::dodgerblue() instead")]]
1124
1126 //[[deprecated("Please use StandardColorf::firebrick() instead")]]
1128
1130 //[[deprecated("Please use StandardColorf::floralwhite() instead")]]
1132
1134 //[[deprecated("Please use StandardColorf::forestgreen() instead")]]
1136
1138 //[[deprecated("Please use StandardColorf::fuchsia() instead")]]
1140
1142 //[[deprecated("Please use StandardColorf::gainsboro() instead")]]
1144
1146 //[[deprecated("Please use StandardColorf::ghostwhite() instead")]]
1148
1150 //[[deprecated("Please use StandardColorf::gold() instead")]]
1151 static Colorf gold;
1152
1154 //[[deprecated("Please use StandardColorf::goldenrod() instead")]]
1156
1158 //[[deprecated("Please use StandardColorf::gray() instead")]]
1159 static Colorf gray;
1160
1162 //[[deprecated("Please use StandardColorf::grey() instead")]]
1163 static Colorf grey;
1164
1166 //[[deprecated("Please use StandardColorf::green() instead")]]
1168
1170 //[[deprecated("Please use StandardColorf::greenyellow() instead")]]
1172
1174 //[[deprecated("Please use StandardColorf::honeydew() instead")]]
1176
1178 //[[deprecated("Please use StandardColorf::hotpink() instead")]]
1180
1182 //[[deprecated("Please use StandardColorf::indianred() instead")]]
1184
1186 //[[deprecated("Please use StandardColorf::indigo() instead")]]
1188
1190 //[[deprecated("Please use StandardColorf::ivory() instead")]]
1192
1194 //[[deprecated("Please use StandardColorf::khaki() instead")]]
1196
1198 //[[deprecated("Please use StandardColorf::lavender() instead")]]
1200
1202 //[[deprecated("Please use StandardColorf::lavenderblush() instead")]]
1204
1206 //[[deprecated("Please use StandardColorf::lawngreen() instead")]]
1208
1210 //[[deprecated("Please use StandardColorf::lemonchiffon() instead")]]
1212
1214 //[[deprecated("Please use StandardColorf::lightblue() instead")]]
1216
1218 //[[deprecated("Please use StandardColorf::lightcoral() instead")]]
1220
1222 //[[deprecated("Please use StandardColorf::lightcyan() instead")]]
1224
1226 //[[deprecated("Please use StandardColorf::lightgoldenrodyellow() instead")]]
1228
1230 //[[deprecated("Please use StandardColorf::lightgray() instead")]]
1232
1234 //[[deprecated("Please use StandardColorf::lightgreen() instead")]]
1236
1238 //[[deprecated("Please use StandardColorf::lightgrey() instead")]]
1240
1242 //[[deprecated("Please use StandardColorf::lightpink() instead")]]
1244
1246 //[[deprecated("Please use StandardColorf::lightsalmon() instead")]]
1248
1250 //[[deprecated("Please use StandardColorf::lightseagreen() instead")]]
1252
1254 //[[deprecated("Please use StandardColorf::lightskyblue() instead")]]
1256
1258 //[[deprecated("Please use StandardColorf::lightslategray() instead")]]
1260
1262 //[[deprecated("Please use StandardColorf::lightslategrey() instead")]]
1264
1266 //[[deprecated("Please use StandardColorf::lightsteelblue() instead")]]
1268
1270 //[[deprecated("Please use StandardColorf::lightyellow() instead")]]
1272
1274 //[[deprecated("Please use StandardColorf::lime() instead")]]
1275 static Colorf lime;
1276
1278 //[[deprecated("Please use StandardColorf::limegreen() instead")]]
1280
1282 //[[deprecated("Please use StandardColorf::linen() instead")]]
1284
1286 //[[deprecated("Please use StandardColorf::magenta() instead")]]
1288
1290 //[[deprecated("Please use StandardColorf::maroon() instead")]]
1292
1294 //[[deprecated("Please use StandardColorf::mediumaquamarine() instead")]]
1296
1298 //[[deprecated("Please use StandardColorf::mediumblue() instead")]]
1300
1302 //[[deprecated("Please use StandardColorf::mediumorchid() instead")]]
1304
1306 //[[deprecated("Please use StandardColorf::mediumpurple() instead")]]
1308
1310 //[[deprecated("Please use StandardColorf::mediumseagreen() instead")]]
1312
1314 //[[deprecated("Please use StandardColorf::mediumslateblue() instead")]]
1316
1318 //[[deprecated("Please use StandardColorf::mediumspringgreen() instead")]]
1320
1322 //[[deprecated("Please use StandardColorf::mediumturquoise() instead")]]
1324
1326 //[[deprecated("Please use StandardColorf::mediumvioletred() instead")]]
1328
1330 //[[deprecated("Please use StandardColorf::midnightblue() instead")]]
1332
1334 //[[deprecated("Please use StandardColorf::mintcream() instead")]]
1336
1338 //[[deprecated("Please use StandardColorf::mistyrose() instead")]]
1340
1342 //[[deprecated("Please use StandardColorf::moccasin() instead")]]
1344
1346 //[[deprecated("Please use StandardColorf::navajowhite() instead")]]
1348
1350 //[[deprecated("Please use StandardColorf::navy() instead")]]
1351 static Colorf navy;
1352
1354 //[[deprecated("Please use StandardColorf::oldlace() instead")]]
1356
1358 //[[deprecated("Please use StandardColorf::olive() instead")]]
1360
1362 //[[deprecated("Please use StandardColorf::olivedrab() instead")]]
1364
1366 //[[deprecated("Please use StandardColorf::orange() instead")]]
1368
1370 //[[deprecated("Please use StandardColorf::orangered() instead")]]
1372
1374 //[[deprecated("Please use StandardColorf::orchid() instead")]]
1376
1378 //[[deprecated("Please use StandardColorf::palegoldenrod() instead")]]
1380
1382 //[[deprecated("Please use StandardColorf::palegreen() instead")]]
1384
1386 //[[deprecated("Please use StandardColorf::paleturquoise() instead")]]
1388
1390 //[[deprecated("Please use StandardColorf::palevioletred() instead")]]
1392
1394 //[[deprecated("Please use StandardColorf::papayawhip() instead")]]
1396
1398 //[[deprecated("Please use StandardColorf::peachpuff() instead")]]
1400
1402 //[[deprecated("Please use StandardColorf::peru() instead")]]
1403 static Colorf peru;
1404
1406 //[[deprecated("Please use StandardColorf::pink() instead")]]
1407 static Colorf pink;
1408
1410 //[[deprecated("Please use StandardColorf::plum() instead")]]
1411 static Colorf plum;
1412
1414 //[[deprecated("Please use StandardColorf::powderblue() instead")]]
1416
1418 //[[deprecated("Please use StandardColorf::purple() instead")]]
1420
1422 //[[deprecated("Please use StandardColorf::red() instead")]]
1423 static Colorf red;
1424
1426 //[[deprecated("Please use StandardColorf::rosybrown() instead")]]
1428
1430 //[[deprecated("Please use StandardColorf::royalblue() instead")]]
1432
1434 //[[deprecated("Please use StandardColorf::saddlebrown() instead")]]
1436
1438 //[[deprecated("Please use StandardColorf::salmon() instead")]]
1440
1442 //[[deprecated("Please use StandardColorf::sandybrown() instead")]]
1444
1446 //[[deprecated("Please use StandardColorf::seagreen() instead")]]
1448
1450 //[[deprecated("Please use StandardColorf::seashell() instead")]]
1452
1454 //[[deprecated("Please use StandardColorf::sienna() instead")]]
1456
1458 //[[deprecated("Please use StandardColorf::silver() instead")]]
1460
1462 //[[deprecated("Please use StandardColorf::skyblue() instead")]]
1464
1466 //[[deprecated("Please use StandardColorf::slateblue() instead")]]
1468
1470 //[[deprecated("Please use StandardColorf::slategray() instead")]]
1472
1474 //[[deprecated("Please use StandardColorf::slategrey() instead")]]
1476
1478 //[[deprecated("Please use StandardColorf::snow() instead")]]
1479 static Colorf snow;
1480
1482 //[[deprecated("Please use StandardColorf::springgreen() instead")]]
1484
1486 //[[deprecated("Please use StandardColorf::steelblue() instead")]]
1488
1490 //[[deprecated("Please use StandardColorf::tan() instead")]]
1491 static Colorf tan;
1492
1494 //[[deprecated("Please use StandardColorf::teal() instead")]]
1495 static Colorf teal;
1496
1498 //[[deprecated("Please use StandardColorf::thistle() instead")]]
1500
1502 //[[deprecated("Please use StandardColorf::tomato() instead")]]
1504
1506 //[[deprecated("Please use StandardColorf::turquoise() instead")]]
1508
1510 //[[deprecated("Please use StandardColorf::violet() instead")]]
1512
1514 //[[deprecated("Please use StandardColorf::wheat() instead")]]
1516
1518 //[[deprecated("Please use StandardColorf::white() instead")]]
1520
1522 //[[deprecated("Please use StandardColorf::whitesmoke() instead")]]
1524
1526 //[[deprecated("Please use StandardColorf::yellow() instead")]]
1528
1530 //[[deprecated("Please use StandardColorf::yellowgreen() instead")]]
1532
1534 //[[deprecated("Please use StandardColorf::transparent() instead")]]
1536
1537 //[[deprecated("Please use StandardColorf::gray10() instead")]]
1539
1540 //[[deprecated("Please use StandardColorf::gray20() instead")]]
1542
1543 //[[deprecated("Please use StandardColorf::gray30() instead")]]
1545
1546 //[[deprecated("Please use StandardColorf::gray40() instead")]]
1548
1549 //[[deprecated("Please use StandardColorf::gray50() instead")]]
1551
1552 //[[deprecated("Please use StandardColorf::gray60() instead")]]
1554
1555 //[[deprecated("Please use StandardColorf::gray70() instead")]]
1557
1558 //[[deprecated("Please use StandardColorf::gray80() instead")]]
1560
1561 //[[deprecated("Please use StandardColorf::gray90() instead")]]
1563 };
1564
1567 {
1568 public:
1569 static Color aliceblue() { return Color(240, 248, 255); }
1570 static Color antiquewhite() { return Color(250, 235, 215); }
1571 static Color aqua() { return Color(0, 255, 255); }
1572 static Color aquamarine() { return Color(127, 255, 212); }
1573 static Color azure() { return Color(240, 255, 255); }
1574 static Color beige() { return Color(245, 245, 220); }
1575 static Color bisque() { return Color(255, 228, 196); }
1576 static Color black() { return Color(0, 0, 0); }
1577 static Color blanchedalmond() { return Color(255, 235, 205); }
1578 static Color blue() { return Color(0, 0, 255); }
1579 static Color blueviolet() { return Color(138, 43, 226); }
1580 static Color brown() { return Color(165, 42, 42); }
1581 static Color burlywood() { return Color(222, 184, 135); }
1582 static Color cadetblue() { return Color(95, 158, 160); }
1583 static Color chartreuse() { return Color(127, 255, 0); }
1584 static Color chocolate() { return Color(210, 105, 30); }
1585 static Color coral() { return Color(255, 127, 80); }
1586 static Color cornflowerblue() { return Color(100, 149, 237); }
1587 static Color cornsilk() { return Color(255, 248, 220); }
1588 static Color crimson() { return Color(220, 20, 60); }
1589 static Color cyan() { return Color(0, 255, 255); }
1590 static Color darkblue() { return Color(0, 0, 139); }
1591 static Color darkcyan() { return Color(0, 139, 139); }
1592 static Color darkgoldenrod() { return Color(184, 134, 11); }
1593 static Color darkgray() { return Color(169, 169, 169); }
1594 static Color darkgreen() { return Color(0, 100, 0); }
1595 static Color darkgrey() { return Color(169, 169, 169); }
1596 static Color darkkhaki() { return Color(189, 183, 107); }
1597 static Color darkmagenta() { return Color(139, 0, 139); }
1598 static Color darkolivegreen() { return Color(85, 107, 47); }
1599 static Color darkorange() { return Color(255, 140, 0); }
1600 static Color darkorchid() { return Color(153, 50, 204); }
1601 static Color darkred() { return Color(139, 0, 0); }
1602 static Color darksalmon() { return Color(233, 150, 122); }
1603 static Color darkseagreen() { return Color(143, 188, 143); }
1604 static Color darkslateblue() { return Color(72, 61, 139); }
1605 static Color darkslategray() { return Color(47, 79, 79); }
1606 static Color darkslategrey() { return Color(47, 79, 79); }
1607 static Color darkturquoise() { return Color(0, 206, 209); }
1608 static Color darkviolet() { return Color(148, 0, 211); }
1609 static Color deeppink() { return Color(255, 20, 147); }
1610 static Color deepskyblue() { return Color(0, 191, 255); }
1611 static Color dimgray() { return Color(105, 105, 105); }
1612 static Color dimgrey() { return Color(105, 105, 105); }
1613 static Color dodgerblue() { return Color(30, 144, 255); }
1614 static Color firebrick() { return Color(178, 34, 34); }
1615 static Color floralwhite() { return Color(255, 250, 240); }
1616 static Color forestgreen() { return Color(34, 139, 34); }
1617 static Color fuchsia() { return Color(255, 0, 255); }
1618 static Color gainsboro() { return Color(220, 220, 220); }
1619 static Color ghostwhite() { return Color(248, 248, 255); }
1620 static Color gold() { return Color(255, 215, 0); }
1621 static Color goldenrod() { return Color(218, 165, 32); }
1622 static Color gray() { return Color(128, 128, 128); }
1623 static Color grey() { return Color(128, 128, 128); }
1624 static Color green() { return Color(0, 128, 0); }
1625 static Color greenyellow() { return Color(173, 255, 47); }
1626 static Color honeydew() { return Color(240, 255, 240); }
1627 static Color hotpink() { return Color(255, 105, 180); }
1628 static Color indianred() { return Color(205, 92, 92); }
1629 static Color indigo() { return Color(75, 0, 130); }
1630 static Color ivory() { return Color(255, 255, 240); }
1631 static Color khaki() { return Color(240, 230, 140); }
1632 static Color lavender() { return Color(230, 230, 250); }
1633 static Color lavenderblush() { return Color(255, 240, 245); }
1634 static Color lawngreen() { return Color(124, 252, 0); }
1635 static Color lemonchiffon() { return Color(255, 250, 205); }
1636 static Color lightblue() { return Color(173, 216, 230); }
1637 static Color lightcoral() { return Color(240, 128, 128); }
1638 static Color lightcyan() { return Color(224, 255, 255); }
1639 static Color lightgoldenrodyellow() { return Color(250, 250, 210); }
1640 static Color lightgray() { return Color(211, 211, 211); }
1641 static Color lightgreen() { return Color(144, 238, 144); }
1642 static Color lightgrey() { return Color(211, 211, 211); }
1643 static Color lightpink() { return Color(255, 182, 193); }
1644 static Color lightsalmon() { return Color(255, 160, 122); }
1645 static Color lightseagreen() { return Color(32, 178, 170); }
1646 static Color lightskyblue() { return Color(135, 206, 250); }
1647 static Color lightslategray() { return Color(119, 136, 153); }
1648 static Color lightslategrey() { return Color(119, 136, 153); }
1649 static Color lightsteelblue() { return Color(176, 196, 222); }
1650 static Color lightyellow() { return Color(255, 255, 224); }
1651 static Color lime() { return Color(0, 255, 0); }
1652 static Color limegreen() { return Color(50, 205, 50); }
1653 static Color linen() { return Color(250, 240, 230); }
1654 static Color magenta() { return Color(255, 0, 255); }
1655 static Color maroon() { return Color(128, 0, 0); }
1656 static Color mediumaquamarine() { return Color(102, 205, 170); }
1657 static Color mediumblue() { return Color(0, 0, 205); }
1658 static Color mediumorchid() { return Color(186, 85, 211); }
1659 static Color mediumpurple() { return Color(147, 112, 219); }
1660 static Color mediumseagreen() { return Color(60, 179, 113); }
1661 static Color mediumslateblue() { return Color(123, 104, 238); }
1662 static Color mediumspringgreen() { return Color(0, 250, 154); }
1663 static Color mediumturquoise() { return Color(72, 209, 204); }
1664 static Color mediumvioletred() { return Color(199, 21, 133); }
1665 static Color midnightblue() { return Color(25, 25, 112); }
1666 static Color mintcream() { return Color(245, 255, 250); }
1667 static Color mistyrose() { return Color(255, 228, 225); }
1668 static Color moccasin() { return Color(255, 228, 181); }
1669 static Color navajowhite() { return Color(255, 222, 173); }
1670 static Color navy() { return Color(0, 0, 128); }
1671 static Color oldlace() { return Color(253, 245, 230); }
1672 static Color olive() { return Color(128, 128, 0); }
1673 static Color olivedrab() { return Color(107, 142, 35); }
1674 static Color orange() { return Color(255, 165, 0); }
1675 static Color orangered() { return Color(255, 69, 0); }
1676 static Color orchid() { return Color(218, 112, 214); }
1677 static Color palegoldenrod() { return Color(238, 232, 170); }
1678 static Color palegreen() { return Color(152, 251, 152); }
1679 static Color paleturquoise() { return Color(175, 238, 238); }
1680 static Color palevioletred() { return Color(219, 112, 147); }
1681 static Color papayawhip() { return Color(255, 239, 213); }
1682 static Color peachpuff() { return Color(255, 218, 185); }
1683 static Color peru() { return Color(205, 133, 63); }
1684 static Color pink() { return Color(255, 192, 203); }
1685 static Color plum() { return Color(221, 160, 221); }
1686 static Color powderblue() { return Color(176, 224, 230); }
1687 static Color purple() { return Color(128, 0, 128); }
1688 static Color red() { return Color(255, 0, 0); }
1689 static Color rosybrown() { return Color(188, 143, 143); }
1690 static Color royalblue() { return Color(65, 105, 225); }
1691 static Color saddlebrown() { return Color(139, 69, 19); }
1692 static Color salmon() { return Color(250, 128, 114); }
1693 static Color sandybrown() { return Color(244, 164, 96); }
1694 static Color seagreen() { return Color(46, 139, 87); }
1695 static Color seashell() { return Color(255, 245, 238); }
1696 static Color sienna() { return Color(160, 82, 45); }
1697 static Color silver() { return Color(192, 192, 192); }
1698 static Color skyblue() { return Color(135, 206, 235); }
1699 static Color slateblue() { return Color(106, 90, 205); }
1700 static Color slategray() { return Color(112, 128, 144); }
1701 static Color slategrey() { return Color(112, 128, 144); }
1702 static Color snow() { return Color(255, 250, 250); }
1703 static Color springgreen() { return Color(0, 255, 127); }
1704 static Color steelblue() { return Color(70, 130, 180); }
1705 static Color tan() { return Color(210, 180, 140); }
1706 static Color teal() { return Color(0, 128, 128); }
1707 static Color thistle() { return Color(216, 191, 216); }
1708 static Color tomato() { return Color(255, 99, 71); }
1709 static Color transparent() { return Color(0, 0, 0, 0); }
1710 static Color turquoise() { return Color(64, 224, 208); }
1711 static Color violet() { return Color(238, 130, 238); }
1712 static Color wheat() { return Color(245, 222, 179); }
1713 static Color white() { return Color(255, 255, 255); }
1714 static Color whitesmoke() { return Color(245, 245, 245); }
1715 static Color yellow() { return Color(255, 255, 0); }
1716 static Color yellowgreen() { return Color(154, 205, 50); }
1717 static Color gray10() { return Color(26, 26, 26); }
1718 static Color gray20() { return Color(51, 51, 51); }
1719 static Color gray30() { return Color(77, 77, 77); }
1720 static Color gray40() { return Color(104, 104, 104); }
1721 static Color gray50() { return Color(128, 128, 128); }
1722 static Color gray60() { return Color(153, 153, 153); }
1723 static Color gray70() { return Color(178, 178, 178); }
1724 static Color gray80() { return Color(204, 204, 204); }
1725 static Color gray90() { return Color(230, 230, 230); }
1726 };
1727
1730 {
1731 public:
1738 static bool parse(const std::string &name, Colorf &out_color);
1739
1740 static Colorf aliceblue() { return Colorf(40.0f / 255.0f, 248.0f / 255.0f, 255.0f / 255.0f); }
1741 static Colorf antiquewhite() { return Colorf(250.0f / 255.0f, 235.0f / 255.0f, 215.0f / 255.0f); }
1742 static Colorf aqua() { return Colorf(0.0f / 255.0f, 255.0f / 255.0f, 255.0f / 255.0f); }
1743 static Colorf aquamarine() { return Colorf(127.0f / 255.0f, 255.0f / 255.0f, 212.0f / 255.0f); }
1744 static Colorf azure() { return Colorf(240.0f / 255.0f, 255.0f / 255.0f, 255.0f / 255.0f); }
1745 static Colorf beige() { return Colorf(245.0f / 255.0f, 245.0f / 255.0f, 220.0f / 255.0f); }
1746 static Colorf bisque() { return Colorf(255.0f / 255.0f, 228.0f / 255.0f, 196.0f / 255.0f); }
1747 static Colorf black() { return Colorf(0.0f / 255.0f, 0.0f / 255.0f, 0.0f / 255.0f); }
1748 static Colorf blanchedalmond() { return Colorf(255.0f / 255.0f, 235.0f / 255.0f, 205.0f / 255.0f); }
1749 static Colorf blue() { return Colorf(0.0f / 255.0f, 0.0f / 255.0f, 255.0f / 255.0f); }
1750 static Colorf blueviolet() { return Colorf(138.0f / 255.0f, 43.0f / 255.0f, 226.0f / 255.0f); }
1751 static Colorf brown() { return Colorf(165.0f / 255.0f, 42.0f / 255.0f, 42.0f / 255.0f); }
1752 static Colorf burlywood() { return Colorf(222.0f / 255.0f, 184.0f / 255.0f, 135.0f / 255.0f); }
1753 static Colorf cadetblue() { return Colorf(95.0f / 255.0f, 158.0f / 255.0f, 160.0f / 255.0f); }
1754 static Colorf chartreuse() { return Colorf(127.0f / 255.0f, 255.0f / 255.0f, 0.0f / 255.0f); }
1755 static Colorf chocolate() { return Colorf(210.0f / 255.0f, 105.0f / 255.0f, 30.0f / 255.0f); }
1756 static Colorf coral() { return Colorf(255.0f / 255.0f, 127.0f / 255.0f, 80.0f / 255.0f); }
1757 static Colorf cornflowerblue() { return Colorf(100.0f / 255.0f, 149.0f / 255.0f, 237.0f / 255.0f); }
1758 static Colorf cornsilk() { return Colorf(255.0f / 255.0f, 248.0f / 255.0f, 220.0f / 255.0f); }
1759 static Colorf crimson() { return Colorf(220.0f / 255.0f, 20.0f / 255.0f, 60.0f / 255.0f); }
1760 static Colorf cyan() { return Colorf(0.0f / 255.0f, 255.0f / 255.0f, 255.0f / 255.0f); }
1761 static Colorf darkblue() { return Colorf(0.0f / 255.0f, 0.0f / 255.0f, 139.0f / 255.0f); }
1762 static Colorf darkcyan() { return Colorf(0.0f / 255.0f, 139.0f / 255.0f, 139.0f / 255.0f); }
1763 static Colorf darkgoldenrod() { return Colorf(184.0f / 255.0f, 134.0f / 255.0f, 11.0f / 255.0f); }
1764 static Colorf darkgray() { return Colorf(169.0f / 255.0f, 169.0f / 255.0f, 169.0f / 255.0f); }
1765 static Colorf darkgreen() { return Colorf(0.0f / 255.0f, 100.0f / 255.0f, 0.0f / 255.0f); }
1766 static Colorf darkgrey() { return Colorf(169.0f / 255.0f, 169.0f / 255.0f, 169.0f / 255.0f); }
1767 static Colorf darkkhaki() { return Colorf(189.0f / 255.0f, 183.0f / 255.0f, 107.0f / 255.0f); }
1768 static Colorf darkmagenta() { return Colorf(139.0f / 255.0f, 0.0f / 255.0f, 139.0f / 255.0f); }
1769 static Colorf darkolivegreen() { return Colorf(85.0f / 255.0f, 107.0f / 255.0f, 47.0f / 255.0f); }
1770 static Colorf darkorange() { return Colorf(255.0f / 255.0f, 140.0f / 255.0f, 0.0f / 255.0f); }
1771 static Colorf darkorchid() { return Colorf(153.0f / 255.0f, 50.0f / 255.0f, 204.0f / 255.0f); }
1772 static Colorf darkred() { return Colorf(139.0f / 255.0f, 0.0f / 255.0f, 0.0f / 255.0f); }
1773 static Colorf darksalmon() { return Colorf(233.0f / 255.0f, 150.0f / 255.0f, 122.0f / 255.0f); }
1774 static Colorf darkseagreen() { return Colorf(143.0f / 255.0f, 188.0f / 255.0f, 143.0f / 255.0f); }
1775 static Colorf darkslateblue() { return Colorf(72.0f / 255.0f, 61.0f / 255.0f, 139.0f / 255.0f); }
1776 static Colorf darkslategray() { return Colorf(47.0f / 255.0f, 79.0f / 255.0f, 79.0f / 255.0f); }
1777 static Colorf darkslategrey() { return Colorf(47.0f / 255.0f, 79.0f / 255.0f, 79.0f / 255.0f); }
1778 static Colorf darkturquoise() { return Colorf(0.0f / 255.0f, 206.0f / 255.0f, 209.0f / 255.0f); }
1779 static Colorf darkviolet() { return Colorf(148.0f / 255.0f, 0.0f / 255.0f, 211.0f / 255.0f); }
1780 static Colorf deeppink() { return Colorf(255.0f / 255.0f, 20.0f / 255.0f, 147.0f / 255.0f); }
1781 static Colorf deepskyblue() { return Colorf(0.0f / 255.0f, 191.0f / 255.0f, 255.0f / 255.0f); }
1782 static Colorf dimgray() { return Colorf(105.0f / 255.0f, 105.0f / 255.0f, 105.0f / 255.0f); }
1783 static Colorf dimgrey() { return Colorf(105.0f / 255.0f, 105.0f / 255.0f, 105.0f / 255.0f); }
1784 static Colorf dodgerblue() { return Colorf(30.0f / 255.0f, 144.0f / 255.0f, 255.0f / 255.0f); }
1785 static Colorf firebrick() { return Colorf(178.0f / 255.0f, 34.0f / 255.0f, 34.0f / 255.0f); }
1786 static Colorf floralwhite() { return Colorf(255.0f / 255.0f, 250.0f / 255.0f, 240.0f / 255.0f); }
1787 static Colorf forestgreen() { return Colorf(34.0f / 255.0f, 139.0f / 255.0f, 34.0f / 255.0f); }
1788 static Colorf fuchsia() { return Colorf(255.0f / 255.0f, 0.0f / 255.0f, 255.0f / 255.0f); }
1789 static Colorf gainsboro() { return Colorf(220.0f / 255.0f, 220.0f / 255.0f, 220.0f / 255.0f); }
1790 static Colorf ghostwhite() { return Colorf(248.0f / 255.0f, 248.0f / 255.0f, 255.0f / 255.0f); }
1791 static Colorf gold() { return Colorf(255.0f / 255.0f, 215.0f / 255.0f, 0.0f / 255.0f); }
1792 static Colorf goldenrod() { return Colorf(218.0f / 255.0f, 165.0f / 255.0f, 32.0f / 255.0f); }
1793 static Colorf gray() { return Colorf(128.0f / 255.0f, 128.0f / 255.0f, 128.0f / 255.0f); }
1794 static Colorf grey() { return Colorf(128.0f / 255.0f, 128.0f / 255.0f, 128.0f / 255.0f); }
1795 static Colorf green() { return Colorf(0.0f / 255.0f, 128.0f / 255.0f, 0.0f / 255.0f); }
1796 static Colorf greenyellow() { return Colorf(173.0f / 255.0f, 255.0f / 255.0f, 47.0f / 255.0f); }
1797 static Colorf honeydew() { return Colorf(240.0f / 255.0f, 255.0f / 255.0f, 240.0f / 255.0f); }
1798 static Colorf hotpink() { return Colorf(255.0f / 255.0f, 105.0f / 255.0f, 180.0f / 255.0f); }
1799 static Colorf indianred() { return Colorf(205.0f / 255.0f, 92.0f / 255.0f, 92.0f / 255.0f); }
1800 static Colorf indigo() { return Colorf(75.0f / 255.0f, 0.0f / 255.0f, 130.0f / 255.0f); }
1801 static Colorf ivory() { return Colorf(255.0f / 255.0f, 255.0f / 255.0f, 240.0f / 255.0f); }
1802 static Colorf khaki() { return Colorf(240.0f / 255.0f, 230.0f / 255.0f, 140.0f / 255.0f); }
1803 static Colorf lavender() { return Colorf(230.0f / 255.0f, 230.0f / 255.0f, 250.0f / 255.0f); }
1804 static Colorf lavenderblush() { return Colorf(255.0f / 255.0f, 240.0f / 255.0f, 245.0f / 255.0f); }
1805 static Colorf lawngreen() { return Colorf(124.0f / 255.0f, 252.0f / 255.0f, 0.0f / 255.0f); }
1806 static Colorf lemonchiffon() { return Colorf(255.0f / 255.0f, 250.0f / 255.0f, 205.0f / 255.0f); }
1807 static Colorf lightblue() { return Colorf(173.0f / 255.0f, 216.0f / 255.0f, 230.0f / 255.0f); }
1808 static Colorf lightcoral() { return Colorf(240.0f / 255.0f, 128.0f / 255.0f, 128.0f / 255.0f); }
1809 static Colorf lightcyan() { return Colorf(224.0f / 255.0f, 255.0f / 255.0f, 255.0f / 255.0f); }
1810 static Colorf lightgoldenrodyellow() { return Colorf(250.0f / 255.0f, 250.0f / 255.0f, 210.0f / 255.0f); }
1811 static Colorf lightgray() { return Colorf(211.0f / 255.0f, 211.0f / 255.0f, 211.0f / 255.0f); }
1812 static Colorf lightgreen() { return Colorf(144.0f / 255.0f, 238.0f / 255.0f, 144.0f / 255.0f); }
1813 static Colorf lightgrey() { return Colorf(211.0f / 255.0f, 211.0f / 255.0f, 211.0f / 255.0f); }
1814 static Colorf lightpink() { return Colorf(255.0f / 255.0f, 182.0f / 255.0f, 193.0f / 255.0f); }
1815 static Colorf lightsalmon() { return Colorf(255.0f / 255.0f, 160.0f / 255.0f, 122.0f / 255.0f); }
1816 static Colorf lightseagreen() { return Colorf(32.0f / 255.0f, 178.0f / 255.0f, 170.0f / 255.0f); }
1817 static Colorf lightskyblue() { return Colorf(135.0f / 255.0f, 206.0f / 255.0f, 250.0f / 255.0f); }
1818 static Colorf lightslategray() { return Colorf(119.0f / 255.0f, 136.0f / 255.0f, 153.0f / 255.0f); }
1819 static Colorf lightslategrey() { return Colorf(119.0f / 255.0f, 136.0f / 255.0f, 153.0f / 255.0f); }
1820 static Colorf lightsteelblue() { return Colorf(176.0f / 255.0f, 196.0f / 255.0f, 222.0f / 255.0f); }
1821 static Colorf lightyellow() { return Colorf(255.0f / 255.0f, 255.0f / 255.0f, 224.0f / 255.0f); }
1822 static Colorf lime() { return Colorf(0.0f / 255.0f, 255.0f / 255.0f, 0.0f / 255.0f); }
1823 static Colorf limegreen() { return Colorf(50.0f / 255.0f, 205.0f / 255.0f, 50.0f / 255.0f); }
1824 static Colorf linen() { return Colorf(250.0f / 255.0f, 240.0f / 255.0f, 230.0f / 255.0f); }
1825 static Colorf magenta() { return Colorf(255.0f / 255.0f, 0.0f / 255.0f, 255.0f / 255.0f); }
1826 static Colorf maroon() { return Colorf(128.0f / 255.0f, 0.0f / 255.0f, 0.0f / 255.0f); }
1827 static Colorf mediumaquamarine() { return Colorf(102.0f / 255.0f, 205.0f / 255.0f, 170.0f / 255.0f); }
1828 static Colorf mediumblue() { return Colorf(0.0f / 255.0f, 0.0f / 255.0f, 205.0f / 255.0f); }
1829 static Colorf mediumorchid() { return Colorf(186.0f / 255.0f, 85.0f / 255.0f, 211.0f / 255.0f); }
1830 static Colorf mediumpurple() { return Colorf(147.0f / 255.0f, 112.0f / 255.0f, 219.0f / 255.0f); }
1831 static Colorf mediumseagreen() { return Colorf(60.0f / 255.0f, 179.0f / 255.0f, 113.0f / 255.0f); }
1832 static Colorf mediumslateblue() { return Colorf(123.0f / 255.0f, 104.0f / 255.0f, 238.0f / 255.0f); }
1833 static Colorf mediumspringgreen() { return Colorf(0.0f / 255.0f, 250.0f / 255.0f, 154.0f / 255.0f); }
1834 static Colorf mediumturquoise() { return Colorf(72.0f / 255.0f, 209.0f / 255.0f, 204.0f / 255.0f); }
1835 static Colorf mediumvioletred() { return Colorf(199.0f / 255.0f, 21.0f / 255.0f, 133.0f / 255.0f); }
1836 static Colorf midnightblue() { return Colorf(25.0f / 255.0f, 25.0f / 255.0f, 112.0f / 255.0f); }
1837 static Colorf mintcream() { return Colorf(245.0f / 255.0f, 255.0f / 255.0f, 250.0f / 255.0f); }
1838 static Colorf mistyrose() { return Colorf(255.0f / 255.0f, 228.0f / 255.0f, 225.0f / 255.0f); }
1839 static Colorf moccasin() { return Colorf(255.0f / 255.0f, 228.0f / 255.0f, 181.0f / 255.0f); }
1840 static Colorf navajowhite() { return Colorf(255.0f / 255.0f, 222.0f / 255.0f, 173.0f / 255.0f); }
1841 static Colorf navy() { return Colorf(0.0f / 255.0f, 0.0f / 255.0f, 128.0f / 255.0f); }
1842 static Colorf oldlace() { return Colorf(253.0f / 255.0f, 245.0f / 255.0f, 230.0f / 255.0f); }
1843 static Colorf olive() { return Colorf(128.0f / 255.0f, 128.0f / 255.0f, 0.0f / 255.0f); }
1844 static Colorf olivedrab() { return Colorf(107.0f / 255.0f, 142.0f / 255.0f, 35.0f / 255.0f); }
1845 static Colorf orange() { return Colorf(255.0f / 255.0f, 165.0f / 255.0f, 0.0f / 255.0f); }
1846 static Colorf orangered() { return Colorf(255.0f / 255.0f, 69.0f / 255.0f, 0.0f / 255.0f); }
1847 static Colorf orchid() { return Colorf(218.0f / 255.0f, 112.0f / 255.0f, 214.0f / 255.0f); }
1848 static Colorf palegoldenrod() { return Colorf(238.0f / 255.0f, 232.0f / 255.0f, 170.0f / 255.0f); }
1849 static Colorf palegreen() { return Colorf(152.0f / 255.0f, 251.0f / 255.0f, 152.0f / 255.0f); }
1850 static Colorf paleturquoise() { return Colorf(175.0f / 255.0f, 238.0f / 255.0f, 238.0f / 255.0f); }
1851 static Colorf palevioletred() { return Colorf(219.0f / 255.0f, 112.0f / 255.0f, 147.0f / 255.0f); }
1852 static Colorf papayawhip() { return Colorf(255.0f / 255.0f, 239.0f / 255.0f, 213.0f / 255.0f); }
1853 static Colorf peachpuff() { return Colorf(255.0f / 255.0f, 218.0f / 255.0f, 185.0f / 255.0f); }
1854 static Colorf peru() { return Colorf(205.0f / 255.0f, 133.0f / 255.0f, 63.0f / 255.0f); }
1855 static Colorf pink() { return Colorf(255.0f / 255.0f, 192.0f / 255.0f, 203.0f / 255.0f); }
1856 static Colorf plum() { return Colorf(221.0f / 255.0f, 160.0f / 255.0f, 221.0f / 255.0f); }
1857 static Colorf powderblue() { return Colorf(176.0f / 255.0f, 224.0f / 255.0f, 230.0f / 255.0f); }
1858 static Colorf purple() { return Colorf(128.0f / 255.0f, 0.0f / 255.0f, 128.0f / 255.0f); }
1859 static Colorf red() { return Colorf(255.0f / 255.0f, 0.0f / 255.0f, 0.0f / 255.0f); }
1860 static Colorf rosybrown() { return Colorf(188.0f / 255.0f, 143.0f / 255.0f, 143.0f / 255.0f); }
1861 static Colorf royalblue() { return Colorf(65.0f / 255.0f, 105.0f / 255.0f, 225.0f / 255.0f); }
1862 static Colorf saddlebrown() { return Colorf(139.0f / 255.0f, 69.0f / 255.0f, 19.0f / 255.0f); }
1863 static Colorf salmon() { return Colorf(250.0f / 255.0f, 128.0f / 255.0f, 114.0f / 255.0f); }
1864 static Colorf sandybrown() { return Colorf(244.0f / 255.0f, 164.0f / 255.0f, 96.0f / 255.0f); }
1865 static Colorf seagreen() { return Colorf(46.0f / 255.0f, 139.0f / 255.0f, 87.0f / 255.0f); }
1866 static Colorf seashell() { return Colorf(255.0f / 255.0f, 245.0f / 255.0f, 238.0f / 255.0f); }
1867 static Colorf sienna() { return Colorf(160.0f / 255.0f, 82.0f / 255.0f, 45.0f / 255.0f); }
1868 static Colorf silver() { return Colorf(192.0f / 255.0f, 192.0f / 255.0f, 192.0f / 255.0f); }
1869 static Colorf skyblue() { return Colorf(135.0f / 255.0f, 206.0f / 255.0f, 235.0f / 255.0f); }
1870 static Colorf slateblue() { return Colorf(106.0f / 255.0f, 90.0f / 255.0f, 205.0f / 255.0f); }
1871 static Colorf slategray() { return Colorf(112.0f / 255.0f, 128.0f / 255.0f, 144.0f / 255.0f); }
1872 static Colorf slategrey() { return Colorf(112.0f / 255.0f, 128.0f / 255.0f, 144.0f / 255.0f); }
1873 static Colorf snow() { return Colorf(255.0f / 255.0f, 250.0f / 255.0f, 250.0f / 255.0f); }
1874 static Colorf springgreen() { return Colorf(0.0f / 255.0f, 255.0f / 255.0f, 127.0f / 255.0f); }
1875 static Colorf steelblue() { return Colorf(70.0f / 255.0f, 130.0f / 255.0f, 180.0f / 255.0f); }
1876 static Colorf tan() { return Colorf(210.0f / 255.0f, 180.0f / 255.0f, 140.0f / 255.0f); }
1877 static Colorf teal() { return Colorf(0.0f / 255.0f, 128.0f / 255.0f, 128.0f / 255.0f); }
1878 static Colorf thistle() { return Colorf(216.0f / 255.0f, 191.0f / 255.0f, 216.0f / 255.0f); }
1879 static Colorf tomato() { return Colorf(255.0f / 255.0f, 99.0f / 255.0f, 71.0f / 255.0f); }
1880 static Colorf transparent() { return Colorf(0.0f, 0.0f, 0.0f, 0.0f); }
1881 static Colorf turquoise() { return Colorf(64.0f / 255.0f, 224.0f / 255.0f, 208.0f / 255.0f); }
1882 static Colorf violet() { return Colorf(238.0f / 255.0f, 130.0f / 255.0f, 238.0f / 255.0f); }
1883 static Colorf wheat() { return Colorf(245.0f / 255.0f, 222.0f / 255.0f, 179.0f / 255.0f); }
1884 static Colorf white() { return Colorf(255.0f / 255.0f, 255.0f / 255.0f, 255.0f / 255.0f); }
1885 static Colorf whitesmoke() { return Colorf(245.0f / 255.0f, 245.0f / 255.0f, 245.0f / 255.0f); }
1886 static Colorf yellow() { return Colorf(255.0f / 255.0f, 255.0f / 255.0f, 0.0f / 255.0f); }
1887 static Colorf yellowgreen() { return Colorf(154.0f / 255.0f, 205.0f / 255.0f, 50.0f / 255.0f); }
1888 static Colorf gray10() { return Colorf(0.1f, 0.1f, 0.1f); }
1889 static Colorf gray20() { return Colorf(0.2f, 0.2f, 0.2f); }
1890 static Colorf gray30() { return Colorf(0.3f, 0.3f, 0.3f); }
1891 static Colorf gray40() { return Colorf(0.4f, 0.4f, 0.4f); }
1892 static Colorf gray50() { return Colorf(0.5f, 0.5f, 0.5f); }
1893 static Colorf gray60() { return Colorf(0.6f, 0.6f, 0.6f); }
1894 static Colorf gray70() { return Colorf(0.7f, 0.7f, 0.7f); }
1895 static Colorf gray80() { return Colorf(0.8f, 0.8f, 0.8f); }
1896 static Colorf gray90() { return Colorf(0.9f, 0.9f, 0.9f); }
1897 };
1898
1900}
Color description class.
Definition color.h:46
unsigned int get_bgr8() const
Returns the color in 0BGR8888 format.
Definition color.h:104
static Color deeppink
Definition color.h:288
float get_green_f() const
Returns the green color component, in the range 0-1.
Definition color.h:92
static Color mediumblue
Definition color.h:480
static Color turquoise
Definition color.h:688
static Color grey
Definition color.h:344
static Color bisque
Definition color.h:152
static Color navajowhite
Definition color.h:528
static Color darkolivegreen
Definition color.h:244
static Color gray90
Definition color.h:743
static Color dimgray
Definition color.h:296
static Color crimson
Definition color.h:204
static Color gray40
Definition color.h:728
static Color violet
Definition color.h:692
static Color deepskyblue
Definition color.h:292
void set_blue(unsigned char value)
Set blue color component, in the range 0-255.
Definition color.h:755
static Color orangered
Definition color.h:552
static Color orange
Definition color.h:548
static Color palevioletred
Definition color.h:572
void set_argb8(unsigned int color)
Set color based on argb color components.
static Color springgreen
Definition color.h:664
static Color linen
Definition color.h:464
static Color ghostwhite
Definition color.h:328
static Color darkgray
Definition color.h:224
static Color darkgoldenrod
Definition color.h:220
static Color pink
Definition color.h:588
static Color slategray
Definition color.h:652
static Color blueviolet
Definition color.h:168
static Color purple
Definition color.h:600
static Color lightyellow
Definition color.h:452
static Color salmon
Definition color.h:620
void set_colorf(float new_red, float new_green, float new_blue, float new_alpha=1.0f)
Set color based on rgba color components in the range 0-1.
Definition color.h:786
unsigned char get_blue() const
Returns the blue color component, in the range 0-255.
Definition color.h:83
static Color mediumturquoise
Definition color.h:504
static Color moccasin
Definition color.h:524
static Color thistle
Definition color.h:680
static Color lightgray
Definition color.h:412
static Color dimgrey
Definition color.h:300
static Color gray20
Definition color.h:722
static Color yellowgreen
Definition color.h:712
void set_alpha_f(float value)
Set alpha color component, in the range 0-1.
Definition color.h:758
void set_bgra8(unsigned int color)
Set color based on rgba color components.
static Color palegreen
Definition color.h:564
static Color limegreen
Definition color.h:460
static Color firebrick
Definition color.h:308
static Color lavender
Definition color.h:380
static Color lavenderblush
Definition color.h:384
static Color lightslategrey
Definition color.h:444
static Color floralwhite
Definition color.h:312
unsigned char get_green() const
Returns the green color component, in the range 0-255.
Definition color.h:80
static Color seashell
Definition color.h:632
static Color maroon
Definition color.h:472
bool operator==(const Color &c) const
Color == Color operator (deep compare)
Definition color.h:115
static Color slateblue
Definition color.h:648
static Color aliceblue
Definition color.h:128
static Color gray60
Definition color.h:734
static Color gold
Definition color.h:332
static Color steelblue
Definition color.h:668
static Color gray70
Definition color.h:737
static Color lime
Definition color.h:456
static Color gray50
Definition color.h:731
static Color darkslategray
Definition color.h:272
static Color sienna
Definition color.h:636
static Color ivory
Definition color.h:372
static Color cadetblue
Definition color.h:180
static Color mediumseagreen
Definition color.h:492
static Color mediumspringgreen
Definition color.h:500
static Color cornflowerblue
Definition color.h:196
static Color dodgerblue
Definition color.h:304
static Color red
Definition color.h:604
static Color khaki
Definition color.h:376
static Color tan
Definition color.h:672
static Color olive
Definition color.h:540
unsigned int get_abgr8() const
Returns the color in ABGR8888 format.
Definition color.h:101
static Color silver
Definition color.h:640
static Color mediumorchid
Definition color.h:484
static Color yellow
Definition color.h:708
static Color whitesmoke
Definition color.h:704
static Color darkkhaki
Definition color.h:236
static Color lightsteelblue
Definition color.h:448
static Color midnightblue
Definition color.h:512
static Color lightseagreen
Definition color.h:432
static Color darkmagenta
Definition color.h:240
Color(unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha=255)
Constructs a color.
Definition color.h:62
static Color darkturquoise
Definition color.h:280
static Color lemonchiffon
Definition color.h:392
unsigned int get_bgra8() const
Returns the color in BGRA8888 format.
Definition color.h:110
static Color lawngreen
Definition color.h:388
static Color hotpink
Definition color.h:360
static Color seagreen
Definition color.h:628
static Color peru
Definition color.h:584
static Color beige
Definition color.h:148
unsigned char get_red() const
Returns the red color component, in the range 0-255.
Definition color.h:77
static Color black
Definition color.h:156
static Color brown
Definition color.h:172
static Color mediumpurple
Definition color.h:488
void set_color(unsigned char new_red, unsigned char new_green, unsigned char new_blue, unsigned char new_alpha=255)
Set color based on rgba color components in the range 0-255.
Definition color.h:770
static Color mediumvioletred
Definition color.h:508
static Color royalblue
Definition color.h:612
static Color blanchedalmond
Definition color.h:160
static Color honeydew
Definition color.h:356
void set_red(unsigned char value)
Set red color component, in the range 0-255.
Definition color.h:749
static Color teal
Definition color.h:676
static Color gray10
Definition color.h:719
static Color cornsilk
Definition color.h:200
bool operator!=(const Color &c) const
Color != Color operator (deep compare)
Definition color.h:121
static Color burlywood
Definition color.h:176
static Color chartreuse
Definition color.h:184
static Color lightskyblue
Definition color.h:436
void set_green_f(float value)
Set green color component, in the range 0-1.
Definition color.h:764
static Color saddlebrown
Definition color.h:616
static Color darkred
Definition color.h:256
static Color peachpuff
Definition color.h:580
static Color palegoldenrod
Definition color.h:560
static Color gray80
Definition color.h:740
static Color darkslategrey
Definition color.h:276
Color(const Colorf &)
float get_blue_f() const
Returns the blue color component, in the range 0-1.
Definition color.h:95
void set_rgba8(unsigned int color)
Set color based on rgba color components.
void set_blue_f(float value)
Set blue color component, in the range 0-1.
Definition color.h:767
static Color coral
Definition color.h:192
static Color paleturquoise
Definition color.h:568
unsigned int get_argb8() const
Returns the color in ARGB8888 format.
Definition color.h:98
static Color mediumaquamarine
Definition color.h:476
void set_rgb8(unsigned int color)
Set color based on rgb color components. Alpha is set to 255.
void set_red_f(float value)
Set red color component, in the range 0-1.
Definition color.h:761
static Color darkcyan
Definition color.h:216
static Color mediumslateblue
Definition color.h:496
static Color gray
Definition color.h:340
static Color cyan
Definition color.h:208
static Color orchid
Definition color.h:556
static Color azure
Definition color.h:144
static Color lightpink
Definition color.h:424
static Color goldenrod
Definition color.h:336
static Color magenta
Definition color.h:468
static Color papayawhip
Definition color.h:576
Color()
Constructs a color.
Definition color.h:49
static Color sandybrown
Definition color.h:624
static Color darkseagreen
Definition color.h:264
void set_green(unsigned char value)
Set green color component, in the range 0-255.
Definition color.h:752
static Color skyblue
Definition color.h:644
static Color aqua
Definition color.h:136
Color(const std::string &hexstr)
Constructs a color.
static Color lightcoral
Definition color.h:400
static Color indianred
Definition color.h:364
static Color antiquewhite
Definition color.h:132
float get_red_f() const
Returns the red color component, in the range 0-1.
Definition color.h:89
static Color aquamarine
Definition color.h:140
static Color chocolate
Definition color.h:188
static Color fuchsia
Definition color.h:320
static Color darkgrey
Definition color.h:232
static Color indigo
Definition color.h:368
static Color mistyrose
Definition color.h:520
static Color lightsalmon
Definition color.h:428
static Color powderblue
Definition color.h:596
static Color navy
Definition color.h:532
static Color tomato
Definition color.h:684
float get_alpha_f() const
Returns the alpha color component, in the range 0-1.
Definition color.h:86
static Color white
Definition color.h:700
static Color mintcream
Definition color.h:516
static Color rosybrown
Definition color.h:608
static Color darkorchid
Definition color.h:252
static Color olivedrab
Definition color.h:544
unsigned char get_alpha() const
Returns the alpha color component, in the range 0-255.
Definition color.h:74
static Color darksalmon
Definition color.h:260
static Color lightgrey
Definition color.h:420
static Color gray30
Definition color.h:725
static Color lightgreen
Definition color.h:416
static Color transparent
rgba(0, 0, 0, 0).
Definition color.h:716
static Color snow
Definition color.h:660
static Color lightblue
Definition color.h:396
static Color darkblue
Definition color.h:212
unsigned int get_rgba8() const
Returns the color in RGBA8888 format.
Definition color.h:107
static Color lightgoldenrodyellow
Definition color.h:408
static Color greenyellow
Definition color.h:352
static Color darkorange
Definition color.h:248
static Color slategrey
Definition color.h:656
void set_alpha(unsigned char value)
Set alpha color component, in the range 0-255.
Definition color.h:746
static Color forestgreen
Definition color.h:316
static Color gainsboro
Definition color.h:324
static Color lightcyan
Definition color.h:404
static Color darkslateblue
Definition color.h:268
static Color darkgreen
Definition color.h:228
static Color lightslategray
Definition color.h:440
static Color wheat
Definition color.h:696
static Color green
Definition color.h:348
static Color darkviolet
Definition color.h:284
static Color blue
Definition color.h:164
static Color oldlace
Definition color.h:536
static Color plum
Definition color.h:592
Floating point color description class (for float).
Definition color.h:799
static Colorf gray20
Definition color.h:1541
static Colorf thistle
Definition color.h:1499
static Colorf darkseagreen
Definition color.h:1083
Colorf(unsigned char r, unsigned char g, unsigned char b, unsigned char a=255)
Constructs a color.
Definition color.h:846
static Colorf palegoldenrod
Definition color.h:1379
static Colorf dodgerblue
Definition color.h:1123
static Colorf gray40
Definition color.h:1547
static Colorf darkgrey
Definition color.h:1051
static Colorf gray70
Definition color.h:1556
static Colorf white
Definition color.h:1519
static Colorf chartreuse
Definition color.h:1003
static Colorf ivory
Definition color.h:1191
static Colorf aquamarine
Definition color.h:959
static Colorf coral
Definition color.h:1011
static Colorf moccasin
Definition color.h:1343
static Colorf peachpuff
Definition color.h:1399
static Colorf dimgray
Definition color.h:1115
static Colorf orange
Definition color.h:1367
static Colorf gray10
Definition color.h:1538
static Colorf royalblue
Definition color.h:1431
static bool find_color(const std::string &name, Colorf &out_color)
Find and returns the static color matching a string.
Colorf(const float *array_rgba)
Constructs a color.
Definition color.h:825
static Colorf navajowhite
Definition color.h:1347
static Colorf sandybrown
Definition color.h:1443
static Colorf purple
Definition color.h:1419
static Colorf mediumaquamarine
Definition color.h:1295
static Colorf snow
Definition color.h:1479
Colorf()
Constructs a color.
Definition color.h:802
static Colorf gray30
Definition color.h:1544
static Colorf darkgoldenrod
Definition color.h:1039
static Colorf azure
Definition color.h:963
void set_green(float value)
Set green color component, in the range 0-1.
Definition color.h:914
static Colorf rosybrown
Definition color.h:1427
static Colorf dimgrey
Definition color.h:1119
static Colorf teal
Definition color.h:1495
static Colorf limegreen
Definition color.h:1279
Colorf(const Vec4f &color)
Constructs a color.
Definition color.h:833
static Colorf mediumpurple
Definition color.h:1307
static Colorf transparent
rgba(0, 0, 0, 0).
Definition color.h:1535
static Colorf floralwhite
Definition color.h:1131
static Colorf palegreen
Definition color.h:1383
static Colorf gray90
Definition color.h:1562
static Colorf ghostwhite
Definition color.h:1147
static Colorf wheat
Definition color.h:1515
static Colorf orchid
Definition color.h:1375
static Colorf lightgreen
Definition color.h:1235
static Colorf lawngreen
Definition color.h:1207
static Colorf lightslategrey
Definition color.h:1263
static Colorf cornflowerblue
Definition color.h:1015
static Colorf mediumblue
Definition color.h:1299
static Colorf lightslategray
Definition color.h:1259
static Colorf lightgray
Definition color.h:1231
static Colorf black
Definition color.h:975
static Colorf aliceblue
Definition color.h:947
static Colorf fuchsia
Definition color.h:1139
float get_alpha() const
Get Alpha.
Definition color.h:896
static Colorf slategrey
Definition color.h:1475
static Colorf lightskyblue
Definition color.h:1255
static Colorf mediumturquoise
Definition color.h:1323
static Colorf mintcream
Definition color.h:1335
static Colorf magenta
Definition color.h:1287
static Colorf gray80
Definition color.h:1559
static Colorf grey
Definition color.h:1163
static Colorf yellowgreen
Definition color.h:1531
static Colorf tan
Definition color.h:1491
static Colorf mistyrose
Definition color.h:1339
Colorf(const Color &color)
Definition color.h:865
static Colorf powderblue
Definition color.h:1415
static Colorf brown
Definition color.h:991
float get_green() const
Get Green.
Definition color.h:886
static Colorf blueviolet
Definition color.h:987
float get_red() const
Get Red.
Definition color.h:881
static Colorf peru
Definition color.h:1403
static Colorf khaki
Definition color.h:1195
static Colorf olivedrab
Definition color.h:1363
static Colorf lightsalmon
Definition color.h:1247
static Colorf maroon
Definition color.h:1291
static Colorf darkturquoise
Definition color.h:1099
static Colorf orangered
Definition color.h:1371
static Colorf papayawhip
Definition color.h:1395
static Colorf slategray
Definition color.h:1471
static Colorf gray
Definition color.h:1159
static Colorf mediumspringgreen
Definition color.h:1319
static Colorf skyblue
Definition color.h:1463
static Colorf darkgreen
Definition color.h:1047
static Colorf red
Definition color.h:1423
static Colorf darkolivegreen
Definition color.h:1063
static Colorf lightseagreen
Definition color.h:1251
static Colorf darkblue
Definition color.h:1031
float get_blue() const
Get Blue.
Definition color.h:891
static Colorf gainsboro
Definition color.h:1143
static Colorf goldenrod
Definition color.h:1155
static Colorf lightgoldenrodyellow
Definition color.h:1227
static Colorf seashell
Definition color.h:1451
static Colorf pink
Definition color.h:1407
static Colorf lightsteelblue
Definition color.h:1267
static Colorf antiquewhite
Definition color.h:951
static Colorf gold
Definition color.h:1151
Colorf(const std::string &hexstr)
Constructs a color.
Definition color.h:873
static Colorf firebrick
Definition color.h:1127
static Colorf cadetblue
Definition color.h:999
static Colorf green
Definition color.h:1167
static Colorf palevioletred
Definition color.h:1391
static Colorf darkviolet
Definition color.h:1103
static Colorf mediumvioletred
Definition color.h:1327
static Colorf lightpink
Definition color.h:1243
static Colorf cyan
Definition color.h:1027
static Colorf slateblue
Definition color.h:1467
Colorf(int r, int g, int b, int a=255)
Constructs a color.
Definition color.h:860
static Colorf lightgrey
Definition color.h:1239
static Colorf indigo
Definition color.h:1187
static Colorf bisque
Definition color.h:971
static Colorf darkslategray
Definition color.h:1091
static Colorf tomato
Definition color.h:1503
static Colorf blue
Definition color.h:983
static Colorf steelblue
Definition color.h:1487
static Colorf mediumseagreen
Definition color.h:1311
static Colorf darkorchid
Definition color.h:1071
static Colorf darkcyan
Definition color.h:1035
static Colorf lime
Definition color.h:1275
static Colorf gray60
Definition color.h:1553
static Colorf yellow
Definition color.h:1527
static Colorf whitesmoke
Definition color.h:1523
static Colorf darkslategrey
Definition color.h:1095
void set_blue(float value)
Set blue color component, in the range 0-1.
Definition color.h:917
static Colorf lavender
Definition color.h:1199
static Colorf midnightblue
Definition color.h:1331
static Colorf darkred
Definition color.h:1075
static Colorf olive
Definition color.h:1359
static Colorf lightyellow
Definition color.h:1271
static Colorf navy
Definition color.h:1351
static Colorf beige
Definition color.h:967
static Colorf salmon
Definition color.h:1439
static Colorf mediumslateblue
Definition color.h:1315
static Colorf forestgreen
Definition color.h:1135
void set_red(float value)
Set red color component, in the range 0-1.
Definition color.h:911
static Colorf lemonchiffon
Definition color.h:1211
static Colorf darkorange
Definition color.h:1067
static Colorf blanchedalmond
Definition color.h:979
bool operator==(const Colorf &c) const
Color == Color operator (deep compare)
Definition color.h:920
static Colorf deepskyblue
Definition color.h:1111
static Colorf springgreen
Definition color.h:1483
static Colorf crimson
Definition color.h:1023
static Colorf oldlace
Definition color.h:1355
static Colorf darkmagenta
Definition color.h:1059
static Colorf darksalmon
Definition color.h:1079
bool operator!=(const Colorf &c) const
Color != Color operator (deep compare)
Definition color.h:926
static Colorf lightcyan
Definition color.h:1223
static Colorf gray50
Definition color.h:1550
static Colorf greenyellow
Definition color.h:1171
static Colorf darkslateblue
Definition color.h:1087
static Colorf paleturquoise
Definition color.h:1387
Colorf(float r, float g, float b, float a=1.0f)
Constructs a color.
Definition color.h:815
static Colorf burlywood
Definition color.h:995
static Colorf turquoise
Definition color.h:1507
static Colorf plum
Definition color.h:1411
static Colorf hotpink
Definition color.h:1179
static Colorf lightcoral
Definition color.h:1219
void set_alpha(float value)
Set alpha color component, in the range 0-1.
Definition color.h:908
static Colorf lavenderblush
Definition color.h:1203
static Colorf lightblue
Definition color.h:1215
static Colorf darkgray
Definition color.h:1043
void normalize()
Normalize the color by ensuring that all color values lie inbetween (0.0, 1.0)
Definition color.h:899
static Colorf cornsilk
Definition color.h:1019
static Colorf indianred
Definition color.h:1183
static Colorf linen
Definition color.h:1283
static Colorf chocolate
Definition color.h:1007
static Colorf seagreen
Definition color.h:1447
static Colorf sienna
Definition color.h:1455
static Colorf deeppink
Definition color.h:1107
static Colorf aqua
Definition color.h:955
static Colorf silver
Definition color.h:1459
static Colorf mediumorchid
Definition color.h:1303
static Colorf darkkhaki
Definition color.h:1055
static Colorf honeydew
Definition color.h:1175
static Colorf saddlebrown
Definition color.h:1435
static Colorf violet
Definition color.h:1511
Standard X11/HTML named colors.
Definition color.h:1567
static Color lightslategray()
Definition color.h:1647
static Color lightblue()
Definition color.h:1636
static Color steelblue()
Definition color.h:1704
static Color gray80()
Definition color.h:1724
static Color whitesmoke()
Definition color.h:1714
static Color aqua()
Definition color.h:1571
static Color mediumspringgreen()
Definition color.h:1662
static Color indigo()
Definition color.h:1629
static Color papayawhip()
Definition color.h:1681
static Color peru()
Definition color.h:1683
static Color navy()
Definition color.h:1670
static Color lightgray()
Definition color.h:1640
static Color magenta()
Definition color.h:1654
static Color wheat()
Definition color.h:1712
static Color cadetblue()
Definition color.h:1582
static Color lavender()
Definition color.h:1632
static Color darksalmon()
Definition color.h:1602
static Color darkgoldenrod()
Definition color.h:1592
static Color pink()
Definition color.h:1684
static Color gold()
Definition color.h:1620
static Color honeydew()
Definition color.h:1626
static Color chartreuse()
Definition color.h:1583
static Color ivory()
Definition color.h:1630
static Color cornsilk()
Definition color.h:1587
static Color maroon()
Definition color.h:1655
static Color gray20()
Definition color.h:1718
static Color darkslategrey()
Definition color.h:1606
static Color deepskyblue()
Definition color.h:1610
static Color lavenderblush()
Definition color.h:1633
static Color darkolivegreen()
Definition color.h:1598
static Color mediumblue()
Definition color.h:1657
static Color chocolate()
Definition color.h:1584
static Color lightsteelblue()
Definition color.h:1649
static Color darkviolet()
Definition color.h:1608
static Color darkblue()
Definition color.h:1590
static Color yellowgreen()
Definition color.h:1716
static Color sienna()
Definition color.h:1696
static Color goldenrod()
Definition color.h:1621
static Color thistle()
Definition color.h:1707
static Color lightpink()
Definition color.h:1643
static Color greenyellow()
Definition color.h:1625
static Color teal()
Definition color.h:1706
static Color lightseagreen()
Definition color.h:1645
static Color coral()
Definition color.h:1585
static Color gray10()
Definition color.h:1717
static Color darkkhaki()
Definition color.h:1596
static Color darkslategray()
Definition color.h:1605
static Color dimgray()
Definition color.h:1611
static Color antiquewhite()
Definition color.h:1570
static Color rosybrown()
Definition color.h:1689
static Color mediumaquamarine()
Definition color.h:1656
static Color seashell()
Definition color.h:1695
static Color floralwhite()
Definition color.h:1615
static Color powderblue()
Definition color.h:1686
static Color grey()
Definition color.h:1623
static Color red()
Definition color.h:1688
static Color violet()
Definition color.h:1711
static Color navajowhite()
Definition color.h:1669
static Color darkorchid()
Definition color.h:1600
static Color indianred()
Definition color.h:1628
static Color salmon()
Definition color.h:1692
static Color blanchedalmond()
Definition color.h:1577
static Color darkturquoise()
Definition color.h:1607
static Color seagreen()
Definition color.h:1694
static Color brown()
Definition color.h:1580
static Color transparent()
Definition color.h:1709
static Color palevioletred()
Definition color.h:1680
static Color tan()
Definition color.h:1705
static Color firebrick()
Definition color.h:1614
static Color lightsalmon()
Definition color.h:1644
static Color darkslateblue()
Definition color.h:1604
static Color slategrey()
Definition color.h:1701
static Color mediumvioletred()
Definition color.h:1664
static Color springgreen()
Definition color.h:1703
static Color mediumpurple()
Definition color.h:1659
static Color darkmagenta()
Definition color.h:1597
static Color mintcream()
Definition color.h:1666
static Color slateblue()
Definition color.h:1699
static Color darkgrey()
Definition color.h:1595
static Color yellow()
Definition color.h:1715
static Color azure()
Definition color.h:1573
static Color saddlebrown()
Definition color.h:1691
static Color lightgrey()
Definition color.h:1642
static Color mediumslateblue()
Definition color.h:1661
static Color khaki()
Definition color.h:1631
static Color black()
Definition color.h:1576
static Color plum()
Definition color.h:1685
static Color lightslategrey()
Definition color.h:1648
static Color lightcyan()
Definition color.h:1638
static Color gray40()
Definition color.h:1720
static Color midnightblue()
Definition color.h:1665
static Color lightgreen()
Definition color.h:1641
static Color blueviolet()
Definition color.h:1579
static Color palegoldenrod()
Definition color.h:1677
static Color crimson()
Definition color.h:1588
static Color darkseagreen()
Definition color.h:1603
static Color darkgreen()
Definition color.h:1594
static Color lemonchiffon()
Definition color.h:1635
static Color lightyellow()
Definition color.h:1650
static Color sandybrown()
Definition color.h:1693
static Color bisque()
Definition color.h:1575
static Color white()
Definition color.h:1713
static Color orangered()
Definition color.h:1675
static Color darkcyan()
Definition color.h:1591
static Color snow()
Definition color.h:1702
static Color mediumorchid()
Definition color.h:1658
static Color gray90()
Definition color.h:1725
static Color dimgrey()
Definition color.h:1612
static Color lime()
Definition color.h:1651
static Color ghostwhite()
Definition color.h:1619
static Color darkgray()
Definition color.h:1593
static Color darkorange()
Definition color.h:1599
static Color mistyrose()
Definition color.h:1667
static Color limegreen()
Definition color.h:1652
static Color deeppink()
Definition color.h:1609
static Color gainsboro()
Definition color.h:1618
static Color peachpuff()
Definition color.h:1682
static Color silver()
Definition color.h:1697
static Color paleturquoise()
Definition color.h:1679
static Color cornflowerblue()
Definition color.h:1586
static Color blue()
Definition color.h:1578
static Color slategray()
Definition color.h:1700
static Color hotpink()
Definition color.h:1627
static Color gray30()
Definition color.h:1719
static Color lightgoldenrodyellow()
Definition color.h:1639
static Color purple()
Definition color.h:1687
static Color lightskyblue()
Definition color.h:1646
static Color royalblue()
Definition color.h:1690
static Color tomato()
Definition color.h:1708
static Color beige()
Definition color.h:1574
static Color darkred()
Definition color.h:1601
static Color burlywood()
Definition color.h:1581
static Color orchid()
Definition color.h:1676
static Color moccasin()
Definition color.h:1668
static Color gray50()
Definition color.h:1721
static Color fuchsia()
Definition color.h:1617
static Color turquoise()
Definition color.h:1710
static Color mediumturquoise()
Definition color.h:1663
static Color skyblue()
Definition color.h:1698
static Color gray70()
Definition color.h:1723
static Color olivedrab()
Definition color.h:1673
static Color oldlace()
Definition color.h:1671
static Color gray()
Definition color.h:1622
static Color gray60()
Definition color.h:1722
static Color dodgerblue()
Definition color.h:1613
static Color olive()
Definition color.h:1672
static Color lawngreen()
Definition color.h:1634
static Color cyan()
Definition color.h:1589
static Color forestgreen()
Definition color.h:1616
static Color aquamarine()
Definition color.h:1572
static Color mediumseagreen()
Definition color.h:1660
static Color orange()
Definition color.h:1674
static Color palegreen()
Definition color.h:1678
static Color lightcoral()
Definition color.h:1637
static Color linen()
Definition color.h:1653
static Color aliceblue()
Definition color.h:1569
static Color green()
Definition color.h:1624
Standard X11/HTML named colors (for float)
Definition color.h:1730
static Colorf beige()
Definition color.h:1745
static Colorf darkorchid()
Definition color.h:1771
static Colorf gray60()
Definition color.h:1893
static Colorf lightcyan()
Definition color.h:1809
static Colorf darkslategray()
Definition color.h:1776
static Colorf limegreen()
Definition color.h:1823
static Colorf orangered()
Definition color.h:1846
static Colorf olive()
Definition color.h:1843
static Colorf darkseagreen()
Definition color.h:1774
static Colorf gray50()
Definition color.h:1892
static Colorf cyan()
Definition color.h:1760
static Colorf mediumpurple()
Definition color.h:1830
static Colorf teal()
Definition color.h:1877
static Colorf deeppink()
Definition color.h:1780
static Colorf cadetblue()
Definition color.h:1753
static Colorf yellowgreen()
Definition color.h:1887
static Colorf gray40()
Definition color.h:1891
static Colorf chartreuse()
Definition color.h:1754
static Colorf floralwhite()
Definition color.h:1786
static Colorf coral()
Definition color.h:1756
static Colorf firebrick()
Definition color.h:1785
static Colorf peachpuff()
Definition color.h:1853
static Colorf lightgoldenrodyellow()
Definition color.h:1810
static Colorf magenta()
Definition color.h:1825
static Colorf fuchsia()
Definition color.h:1788
static Colorf pink()
Definition color.h:1855
static Colorf ghostwhite()
Definition color.h:1790
static Colorf mediumvioletred()
Definition color.h:1835
static Colorf yellow()
Definition color.h:1886
static Colorf gold()
Definition color.h:1791
static Colorf bisque()
Definition color.h:1746
static Colorf darkmagenta()
Definition color.h:1768
static Colorf lightslategray()
Definition color.h:1818
static Colorf crimson()
Definition color.h:1759
static Colorf lavender()
Definition color.h:1803
static Colorf honeydew()
Definition color.h:1797
static Colorf lime()
Definition color.h:1822
static Colorf powderblue()
Definition color.h:1857
static Colorf black()
Definition color.h:1747
static Colorf springgreen()
Definition color.h:1874
static Colorf darkcyan()
Definition color.h:1762
static Colorf plum()
Definition color.h:1856
static Colorf dodgerblue()
Definition color.h:1784
static Colorf dimgray()
Definition color.h:1782
static Colorf goldenrod()
Definition color.h:1792
static Colorf darkorange()
Definition color.h:1770
static Colorf mediumaquamarine()
Definition color.h:1827
static Colorf deepskyblue()
Definition color.h:1781
static Colorf lightcoral()
Definition color.h:1808
static Colorf purple()
Definition color.h:1858
static Colorf lavenderblush()
Definition color.h:1804
static Colorf steelblue()
Definition color.h:1875
static Colorf lightgrey()
Definition color.h:1813
static Colorf greenyellow()
Definition color.h:1796
static Colorf whitesmoke()
Definition color.h:1885
static Colorf lightgray()
Definition color.h:1811
static Colorf salmon()
Definition color.h:1863
static Colorf gray30()
Definition color.h:1890
static Colorf skyblue()
Definition color.h:1869
static Colorf lawngreen()
Definition color.h:1805
static Colorf transparent()
Definition color.h:1880
static Colorf lightseagreen()
Definition color.h:1816
static Colorf slategray()
Definition color.h:1871
static Colorf darkgrey()
Definition color.h:1766
static Colorf lightpink()
Definition color.h:1814
static Colorf papayawhip()
Definition color.h:1852
static Colorf snow()
Definition color.h:1873
static Colorf red()
Definition color.h:1859
static Colorf chocolate()
Definition color.h:1755
static Colorf darkblue()
Definition color.h:1761
static Colorf orange()
Definition color.h:1845
static Colorf sienna()
Definition color.h:1867
static Colorf mediumslateblue()
Definition color.h:1832
static Colorf lightslategrey()
Definition color.h:1819
static Colorf brown()
Definition color.h:1751
static Colorf gray()
Definition color.h:1793
static Colorf moccasin()
Definition color.h:1839
static Colorf mediumspringgreen()
Definition color.h:1833
static Colorf blanchedalmond()
Definition color.h:1748
static Colorf palegoldenrod()
Definition color.h:1848
static Colorf indigo()
Definition color.h:1800
static Colorf lightskyblue()
Definition color.h:1817
static Colorf blueviolet()
Definition color.h:1750
static Colorf aquamarine()
Definition color.h:1743
static Colorf grey()
Definition color.h:1794
static Colorf lightgreen()
Definition color.h:1812
static Colorf darkviolet()
Definition color.h:1779
static Colorf lemonchiffon()
Definition color.h:1806
static Colorf seagreen()
Definition color.h:1865
static Colorf lightsteelblue()
Definition color.h:1820
static Colorf saddlebrown()
Definition color.h:1862
static Colorf burlywood()
Definition color.h:1752
static Colorf sandybrown()
Definition color.h:1864
static Colorf ivory()
Definition color.h:1801
static Colorf lightblue()
Definition color.h:1807
static Colorf palevioletred()
Definition color.h:1851
static Colorf hotpink()
Definition color.h:1798
static Colorf white()
Definition color.h:1884
static Colorf darkslateblue()
Definition color.h:1775
static Colorf tomato()
Definition color.h:1879
static Colorf darkred()
Definition color.h:1772
static Colorf wheat()
Definition color.h:1883
static Colorf darkgreen()
Definition color.h:1765
static Colorf green()
Definition color.h:1795
static Colorf gray70()
Definition color.h:1894
static Colorf darkslategrey()
Definition color.h:1777
static Colorf dimgrey()
Definition color.h:1783
static Colorf navy()
Definition color.h:1841
static Colorf gray90()
Definition color.h:1896
static bool parse(const std::string &name, Colorf &out_color)
Find and returns the static color matching a string.
static Colorf darkkhaki()
Definition color.h:1767
static Colorf gray10()
Definition color.h:1888
static Colorf seashell()
Definition color.h:1866
static Colorf slateblue()
Definition color.h:1870
static Colorf darkgoldenrod()
Definition color.h:1763
static Colorf slategrey()
Definition color.h:1872
static Colorf linen()
Definition color.h:1824
static Colorf silver()
Definition color.h:1868
static Colorf navajowhite()
Definition color.h:1840
static Colorf midnightblue()
Definition color.h:1836
static Colorf mistyrose()
Definition color.h:1838
static Colorf forestgreen()
Definition color.h:1787
static Colorf azure()
Definition color.h:1744
static Colorf royalblue()
Definition color.h:1861
static Colorf mintcream()
Definition color.h:1837
static Colorf aliceblue()
Definition color.h:1740
static Colorf cornflowerblue()
Definition color.h:1757
static Colorf thistle()
Definition color.h:1878
static Colorf mediumorchid()
Definition color.h:1829
static Colorf olivedrab()
Definition color.h:1844
static Colorf maroon()
Definition color.h:1826
static Colorf blue()
Definition color.h:1749
static Colorf paleturquoise()
Definition color.h:1850
static Colorf mediumblue()
Definition color.h:1828
static Colorf gray20()
Definition color.h:1889
static Colorf darkgray()
Definition color.h:1764
static Colorf turquoise()
Definition color.h:1881
static Colorf gray80()
Definition color.h:1895
static Colorf orchid()
Definition color.h:1847
static Colorf mediumseagreen()
Definition color.h:1831
static Colorf mediumturquoise()
Definition color.h:1834
static Colorf tan()
Definition color.h:1876
static Colorf darkolivegreen()
Definition color.h:1769
static Colorf oldlace()
Definition color.h:1842
static Colorf cornsilk()
Definition color.h:1758
static Colorf darkturquoise()
Definition color.h:1778
static Colorf lightsalmon()
Definition color.h:1815
static Colorf violet()
Definition color.h:1882
static Colorf gainsboro()
Definition color.h:1789
static Colorf antiquewhite()
Definition color.h:1741
static Colorf lightyellow()
Definition color.h:1821
static Colorf indianred()
Definition color.h:1799
static Colorf peru()
Definition color.h:1854
static Colorf khaki()
Definition color.h:1802
static Colorf darksalmon()
Definition color.h:1773
static Colorf rosybrown()
Definition color.h:1860
static Colorf aqua()
Definition color.h:1742
static Colorf palegreen()
Definition color.h:1849
unsigned char a
Definition vec4.h:82
unsigned char r
Definition vec4.h:79
unsigned char b
Definition vec4.h:81
unsigned char g
Definition vec4.h:80
Vec4< unsigned char > Vec4ub
Definition vec4.h:393
Vec4< float > Vec4f
Definition vec4.h:399
Definition clanapp.h:36
@ color
value is an url
Definition style_value_type.h:43
@ c
Definition keys.h:83