33#include "../../Core/Math/vec4.h"
62 Color(
unsigned char red,
unsigned char green,
unsigned char blue,
unsigned char alpha = 255)
71 Color(
const std::string &hexstr);
98 unsigned int get_argb8()
const {
return (((
unsigned int)
a) << 24) | (((
unsigned int)
r) << 16) | (((
unsigned int)
g) << 8) | (
unsigned int)
b; }
101 unsigned int get_abgr8()
const {
return (((
unsigned int)
a) << 24) | (((
unsigned int)
b) << 16) | (((
unsigned int)
g) << 8) | (
unsigned int)
r; }
104 unsigned int get_bgr8()
const {
return (((
unsigned int)
b) << 16) | (((
unsigned int)
g) << 8) | (
unsigned int)
r; }
107 unsigned int get_rgba8()
const {
return (((
unsigned int)
r) << 24) | (((
unsigned int)
g) << 16) | (((
unsigned int)
b) << 8) | (
unsigned int)
a; }
110 unsigned int get_bgra8()
const {
return (((
unsigned int)
b) << 24) | (((
unsigned int)
g) << 16) | (((
unsigned int)
r) << 8) | (
unsigned int)
a; }
117 return (
r ==
c.r) && (
g ==
c.g) && (
b ==
c.b) && (
a ==
c.a);
123 return (
r !=
c.r) || (
g !=
c.g) || (
b !=
c.b) || (
a !=
c.a);
761 void set_red_f(
float value) {
r = (
unsigned char) (value*255.0f); }
767 void set_blue_f(
float value) {
b = (
unsigned char) (value*255.0f); }
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; }
786 void set_colorf(
float new_red,
float new_green,
float new_blue,
float new_alpha = 1.0f)
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);
826 :
Vec4f((array_rgba[0]), (array_rgba[1]), (array_rgba[2]), (array_rgba[3]))
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))
861 :
Vec4f((
r/255.0f), (
g/255.0f), (
b/255.0f), (
a/255.0f))
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);
922 return (
r ==
c.r) && (
g ==
c.g) && (
b ==
c.b) && (
a ==
c.a);
928 return (
r !=
c.r) || (
g !=
c.g) || (
b !=
c.b) || (
a !=
c.a);
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
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
4D vector
Definition vec4.h:75
Type a
Definition vec4.h:82
Type r
Definition vec4.h:79
Type b
Definition vec4.h:81
Type g
Definition vec4.h:80