Overview
Download
Documentation
Contact
Sources
API
Display
2D
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
36
namespace
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")]]
128
static
Color
aliceblue
;
129
131
//[[deprecated("Please use StandardColor::antiquewhite() instead")]]
132
static
Color
antiquewhite
;
133
135
//[[deprecated("Please use StandardColor::aqua() instead")]]
136
static
Color
aqua
;
137
139
//[[deprecated("Please use StandardColor::aquamarine() instead")]]
140
static
Color
aquamarine
;
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")]]
160
static
Color
blanchedalmond
;
161
163
//[[deprecated("Please use StandardColor::blue() instead")]]
164
static
Color
blue
;
165
167
//[[deprecated("Please use StandardColor::blueviolet() instead")]]
168
static
Color
blueviolet
;
169
171
//[[deprecated("Please use StandardColor::brown() instead")]]
172
static
Color
brown
;
173
175
//[[deprecated("Please use StandardColor::burlywood() instead")]]
176
static
Color
burlywood
;
177
179
//[[deprecated("Please use StandardColor::cadetblue() instead")]]
180
static
Color
cadetblue
;
181
183
//[[deprecated("Please use StandardColor::chartreuse() instead")]]
184
static
Color
chartreuse
;
185
187
//[[deprecated("Please use StandardColor::chocolate() instead")]]
188
static
Color
chocolate
;
189
191
//[[deprecated("Please use StandardColor::coral() instead")]]
192
static
Color
coral
;
193
195
//[[deprecated("Please use StandardColor::cornflowerblue() instead")]]
196
static
Color
cornflowerblue
;
197
199
//[[deprecated("Please use StandardColor::cornsilk() instead")]]
200
static
Color
cornsilk
;
201
203
//[[deprecated("Please use StandardColor::crimson() instead")]]
204
static
Color
crimson
;
205
207
//[[deprecated("Please use StandardColor::cyan() instead")]]
208
static
Color
cyan
;
209
211
//[[deprecated("Please use StandardColor::darkblue() instead")]]
212
static
Color
darkblue
;
213
215
//[[deprecated("Please use StandardColor::darkcyan() instead")]]
216
static
Color
darkcyan
;
217
219
//[[deprecated("Please use StandardColor::darkgoldenrod() instead")]]
220
static
Color
darkgoldenrod
;
221
223
//[[deprecated("Please use StandardColor::darkgray() instead")]]
224
static
Color
darkgray
;
225
227
//[[deprecated("Please use StandardColor::darkgreen() instead")]]
228
static
Color
darkgreen
;
229
231
//[[deprecated("Please use StandardColor::darkgrey() instead")]]
232
static
Color
darkgrey
;
233
235
//[[deprecated("Please use StandardColor::darkkhaki() instead")]]
236
static
Color
darkkhaki
;
237
239
//[[deprecated("Please use StandardColor::darkmagenta() instead")]]
240
static
Color
darkmagenta
;
241
243
//[[deprecated("Please use StandardColor::darkolivegreen() instead")]]
244
static
Color
darkolivegreen
;
245
247
//[[deprecated("Please use StandardColor::darkorange() instead")]]
248
static
Color
darkorange
;
249
251
//[[deprecated("Please use StandardColor::darkorchid() instead")]]
252
static
Color
darkorchid
;
253
255
//[[deprecated("Please use StandardColor::darkred() instead")]]
256
static
Color
darkred
;
257
259
//[[deprecated("Please use StandardColor::darksalmon() instead")]]
260
static
Color
darksalmon
;
261
263
//[[deprecated("Please use StandardColor::darkseagreen() instead")]]
264
static
Color
darkseagreen
;
265
267
//[[deprecated("Please use StandardColor::darkslateblue() instead")]]
268
static
Color
darkslateblue
;
269
271
//[[deprecated("Please use StandardColor::darkslategray() instead")]]
272
static
Color
darkslategray
;
273
275
//[[deprecated("Please use StandardColor::darkslategrey() instead")]]
276
static
Color
darkslategrey
;
277
279
//[[deprecated("Please use StandardColor::darkturquoise() instead")]]
280
static
Color
darkturquoise
;
281
283
//[[deprecated("Please use StandardColor::darkviolet() instead")]]
284
static
Color
darkviolet
;
285
287
//[[deprecated("Please use StandardColor::deeppink() instead")]]
288
static
Color
deeppink
;
289
291
//[[deprecated("Please use StandardColor::deepskyblue() instead")]]
292
static
Color
deepskyblue
;
293
295
//[[deprecated("Please use StandardColor::dimgray() instead")]]
296
static
Color
dimgray
;
297
299
//[[deprecated("Please use StandardColor::dimgrey() instead")]]
300
static
Color
dimgrey
;
301
303
//[[deprecated("Please use StandardColor::dodgerblue() instead")]]
304
static
Color
dodgerblue
;
305
307
//[[deprecated("Please use StandardColor::firebrick() instead")]]
308
static
Color
firebrick
;
309
311
//[[deprecated("Please use StandardColor::floralwhite() instead")]]
312
static
Color
floralwhite
;
313
315
//[[deprecated("Please use StandardColor::forestgreen() instead")]]
316
static
Color
forestgreen
;
317
319
//[[deprecated("Please use StandardColor::fuchsia() instead")]]
320
static
Color
fuchsia
;
321
323
//[[deprecated("Please use StandardColor::gainsboro() instead")]]
324
static
Color
gainsboro
;
325
327
//[[deprecated("Please use StandardColor::ghostwhite() instead")]]
328
static
Color
ghostwhite
;
329
331
//[[deprecated("Please use StandardColor::gold() instead")]]
332
static
Color
gold
;
333
335
//[[deprecated("Please use StandardColor::goldenrod() instead")]]
336
static
Color
goldenrod
;
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")]]
352
static
Color
greenyellow
;
353
355
//[[deprecated("Please use StandardColor::honeydew() instead")]]
356
static
Color
honeydew
;
357
359
//[[deprecated("Please use StandardColor::hotpink() instead")]]
360
static
Color
hotpink
;
361
363
//[[deprecated("Please use StandardColor::indianred() instead")]]
364
static
Color
indianred
;
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")]]
380
static
Color
lavender
;
381
383
//[[deprecated("Please use StandardColor::lavenderblush() instead")]]
384
static
Color
lavenderblush
;
385
387
//[[deprecated("Please use StandardColor::lawngreen() instead")]]
388
static
Color
lawngreen
;
389
391
//[[deprecated("Please use StandardColor::lemonchiffon() instead")]]
392
static
Color
lemonchiffon
;
393
395
//[[deprecated("Please use StandardColor::lightblue() instead")]]
396
static
Color
lightblue
;
397
399
//[[deprecated("Please use StandardColor::lightcoral() instead")]]
400
static
Color
lightcoral
;
401
403
//[[deprecated("Please use StandardColor::lightcyan() instead")]]
404
static
Color
lightcyan
;
405
407
//[[deprecated("Please use StandardColor::lightgoldenrodyellow() instead")]]
408
static
Color
lightgoldenrodyellow
;
409
411
//[[deprecated("Please use StandardColor::lightgray() instead")]]
412
static
Color
lightgray
;
413
415
//[[deprecated("Please use StandardColor::lightgreen() instead")]]
416
static
Color
lightgreen
;
417
419
//[[deprecated("Please use StandardColor::lightgrey() instead")]]
420
static
Color
lightgrey
;
421
423
//[[deprecated("Please use StandardColor::lightpink() instead")]]
424
static
Color
lightpink
;
425
427
//[[deprecated("Please use StandardColor::lightsalmon() instead")]]
428
static
Color
lightsalmon
;
429
431
//[[deprecated("Please use StandardColor::lightseagreen() instead")]]
432
static
Color
lightseagreen
;
433
435
//[[deprecated("Please use StandardColor::lightskyblue() instead")]]
436
static
Color
lightskyblue
;
437
439
//[[deprecated("Please use StandardColor::lightslategray() instead")]]
440
static
Color
lightslategray
;
441
443
//[[deprecated("Please use StandardColor::lightslategrey() instead")]]
444
static
Color
lightslategrey
;
445
447
//[[deprecated("Please use StandardColor::lightsteelblue() instead")]]
448
static
Color
lightsteelblue
;
449
451
//[[deprecated("Please use StandardColor::lightyellow() instead")]]
452
static
Color
lightyellow
;
453
455
//[[deprecated("Please use StandardColor::lime() instead")]]
456
static
Color
lime
;
457
459
//[[deprecated("Please use StandardColor::limegreen() instead")]]
460
static
Color
limegreen
;
461
463
//[[deprecated("Please use StandardColor::linen() instead")]]
464
static
Color
linen
;
465
467
//[[deprecated("Please use StandardColor::magenta() instead")]]
468
static
Color
magenta
;
469
471
//[[deprecated("Please use StandardColor::maroon() instead")]]
472
static
Color
maroon
;
473
475
//[[deprecated("Please use StandardColor::mediumaquamarine() instead")]]
476
static
Color
mediumaquamarine
;
477
479
//[[deprecated("Please use StandardColor::mediumblue() instead")]]
480
static
Color
mediumblue
;
481
483
//[[deprecated("Please use StandardColor::mediumorchid() instead")]]
484
static
Color
mediumorchid
;
485
487
//[[deprecated("Please use StandardColor::mediumpurple() instead")]]
488
static
Color
mediumpurple
;
489
491
//[[deprecated("Please use StandardColor::mediumseagreen() instead")]]
492
static
Color
mediumseagreen
;
493
495
//[[deprecated("Please use StandardColor::mediumslateblue() instead")]]
496
static
Color
mediumslateblue
;
497
499
//[[deprecated("Please use StandardColor::mediumspringgreen() instead")]]
500
static
Color
mediumspringgreen
;
501
503
//[[deprecated("Please use StandardColor::mediumturquoise() instead")]]
504
static
Color
mediumturquoise
;
505
507
//[[deprecated("Please use StandardColor::mediumvioletred() instead")]]
508
static
Color
mediumvioletred
;
509
511
//[[deprecated("Please use StandardColor::midnightblue() instead")]]
512
static
Color
midnightblue
;
513
515
//[[deprecated("Please use StandardColor::mintcream() instead")]]
516
static
Color
mintcream
;
517
519
//[[deprecated("Please use StandardColor::mistyrose() instead")]]
520
static
Color
mistyrose
;
521
523
//[[deprecated("Please use StandardColor::moccasin() instead")]]
524
static
Color
moccasin
;
525
527
//[[deprecated("Please use StandardColor::navajowhite() instead")]]
528
static
Color
navajowhite
;
529
531
//[[deprecated("Please use StandardColor::navy() instead")]]
532
static
Color
navy
;
533
535
//[[deprecated("Please use StandardColor::oldlace() instead")]]
536
static
Color
oldlace
;
537
539
//[[deprecated("Please use StandardColor::olive() instead")]]
540
static
Color
olive
;
541
543
//[[deprecated("Please use StandardColor::olivedrab() instead")]]
544
static
Color
olivedrab
;
545
547
//[[deprecated("Please use StandardColor::orange() instead")]]
548
static
Color
orange
;
549
551
//[[deprecated("Please use StandardColor::orangered() instead")]]
552
static
Color
orangered
;
553
555
//[[deprecated("Please use StandardColor::orchid() instead")]]
556
static
Color
orchid
;
557
559
//[[deprecated("Please use StandardColor::palegoldenrod() instead")]]
560
static
Color
palegoldenrod
;
561
563
//[[deprecated("Please use StandardColor::palegreen() instead")]]
564
static
Color
palegreen
;
565
567
//[[deprecated("Please use StandardColor::paleturquoise() instead")]]
568
static
Color
paleturquoise
;
569
571
//[[deprecated("Please use StandardColor::palevioletred() instead")]]
572
static
Color
palevioletred
;
573
575
//[[deprecated("Please use StandardColor::papayawhip() instead")]]
576
static
Color
papayawhip
;
577
579
//[[deprecated("Please use StandardColor::peachpuff() instead")]]
580
static
Color
peachpuff
;
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")]]
596
static
Color
powderblue
;
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")]]
608
static
Color
rosybrown
;
609
611
//[[deprecated("Please use StandardColor::royalblue() instead")]]
612
static
Color
royalblue
;
613
615
//[[deprecated("Please use StandardColor::saddlebrown() instead")]]
616
static
Color
saddlebrown
;
617
619
//[[deprecated("Please use StandardColor::salmon() instead")]]
620
static
Color
salmon
;
621
623
//[[deprecated("Please use StandardColor::sandybrown() instead")]]
624
static
Color
sandybrown
;
625
627
//[[deprecated("Please use StandardColor::seagreen() instead")]]
628
static
Color
seagreen
;
629
631
//[[deprecated("Please use StandardColor::seashell() instead")]]
632
static
Color
seashell
;
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")]]
644
static
Color
skyblue
;
645
647
//[[deprecated("Please use StandardColor::slateblue() instead")]]
648
static
Color
slateblue
;
649
651
//[[deprecated("Please use StandardColor::slategray() instead")]]
652
static
Color
slategray
;
653
655
//[[deprecated("Please use StandardColor::slategrey() instead")]]
656
static
Color
slategrey
;
657
659
//[[deprecated("Please use StandardColor::snow() instead")]]
660
static
Color
snow
;
661
663
//[[deprecated("Please use StandardColor::springgreen() instead")]]
664
static
Color
springgreen
;
665
667
//[[deprecated("Please use StandardColor::steelblue() instead")]]
668
static
Color
steelblue
;
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")]]
680
static
Color
thistle
;
681
683
//[[deprecated("Please use StandardColor::tomato() instead")]]
684
static
Color
tomato
;
685
687
//[[deprecated("Please use StandardColor::turquoise() instead")]]
688
static
Color
turquoise
;
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")]]
704
static
Color
whitesmoke
;
705
707
//[[deprecated("Please use StandardColor::yellow() instead")]]
708
static
Color
yellow
;
709
711
//[[deprecated("Please use StandardColor::yellowgreen() instead")]]
712
static
Color
yellowgreen
;
713
715
//[[deprecated("Please use StandardColor::transparent() instead")]]
716
static
Color
transparent
;
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
833
Colorf
(
const
Vec4f
&
color
) :
Vec4f
(
color
)
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
899
void
normalize
()
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")]]
947
static
Colorf
aliceblue
;
948
950
//[[deprecated("Please use StandardColorf::antiquewhite() instead")]]
951
static
Colorf
antiquewhite
;
952
954
//[[deprecated("Please use StandardColorf::aqua() instead")]]
955
static
Colorf
aqua
;
956
958
//[[deprecated("Please use StandardColorf::aquamarine() instead")]]
959
static
Colorf
aquamarine
;
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")]]
971
static
Colorf
bisque
;
972
974
//[[deprecated("Please use StandardColorf::black() instead")]]
975
static
Colorf
black
;
976
978
//[[deprecated("Please use StandardColorf::blanchedalmond() instead")]]
979
static
Colorf
blanchedalmond
;
980
982
//[[deprecated("Please use StandardColorf::blue() instead")]]
983
static
Colorf
blue
;
984
986
//[[deprecated("Please use StandardColorf::blueviolet() instead")]]
987
static
Colorf
blueviolet
;
988
990
//[[deprecated("Please use StandardColorf::brown() instead")]]
991
static
Colorf
brown
;
992
994
//[[deprecated("Please use StandardColorf::burlywood() instead")]]
995
static
Colorf
burlywood
;
996
998
//[[deprecated("Please use StandardColorf::cadetblue() instead")]]
999
static
Colorf
cadetblue
;
1000
1002
//[[deprecated("Please use StandardColorf::chartreuse() instead")]]
1003
static
Colorf
chartreuse
;
1004
1006
//[[deprecated("Please use StandardColorf::chocolate() instead")]]
1007
static
Colorf
chocolate
;
1008
1010
//[[deprecated("Please use StandardColorf::coral() instead")]]
1011
static
Colorf
coral
;
1012
1014
//[[deprecated("Please use StandardColorf::cornflowerblue() instead")]]
1015
static
Colorf
cornflowerblue
;
1016
1018
//[[deprecated("Please use StandardColorf::cornsilk() instead")]]
1019
static
Colorf
cornsilk
;
1020
1022
//[[deprecated("Please use StandardColorf::crimson() instead")]]
1023
static
Colorf
crimson
;
1024
1026
//[[deprecated("Please use StandardColorf::cyan() instead")]]
1027
static
Colorf
cyan
;
1028
1030
//[[deprecated("Please use StandardColorf::darkblue() instead")]]
1031
static
Colorf
darkblue
;
1032
1034
//[[deprecated("Please use StandardColorf::darkcyan() instead")]]
1035
static
Colorf
darkcyan
;
1036
1038
//[[deprecated("Please use StandardColorf::darkgoldenrod() instead")]]
1039
static
Colorf
darkgoldenrod
;
1040
1042
//[[deprecated("Please use StandardColorf::darkgray() instead")]]
1043
static
Colorf
darkgray
;
1044
1046
//[[deprecated("Please use StandardColorf::darkgreen() instead")]]
1047
static
Colorf
darkgreen
;
1048
1050
//[[deprecated("Please use StandardColorf::darkgrey() instead")]]
1051
static
Colorf
darkgrey
;
1052
1054
//[[deprecated("Please use StandardColorf::darkkhaki() instead")]]
1055
static
Colorf
darkkhaki
;
1056
1058
//[[deprecated("Please use StandardColorf::darkmagenta() instead")]]
1059
static
Colorf
darkmagenta
;
1060
1062
//[[deprecated("Please use StandardColorf::darkolivegreen() instead")]]
1063
static
Colorf
darkolivegreen
;
1064
1066
//[[deprecated("Please use StandardColorf::darkorange() instead")]]
1067
static
Colorf
darkorange
;
1068
1070
//[[deprecated("Please use StandardColorf::darkorchid() instead")]]
1071
static
Colorf
darkorchid
;
1072
1074
//[[deprecated("Please use StandardColorf::darkred() instead")]]
1075
static
Colorf
darkred
;
1076
1078
//[[deprecated("Please use StandardColorf::darksalmon() instead")]]
1079
static
Colorf
darksalmon
;
1080
1082
//[[deprecated("Please use StandardColorf::darkseagreen() instead")]]
1083
static
Colorf
darkseagreen
;
1084
1086
//[[deprecated("Please use StandardColorf::darkslateblue() instead")]]
1087
static
Colorf
darkslateblue
;
1088
1090
//[[deprecated("Please use StandardColorf::darkslategray() instead")]]
1091
static
Colorf
darkslategray
;
1092
1094
//[[deprecated("Please use StandardColorf::darkslategrey() instead")]]
1095
static
Colorf
darkslategrey
;
1096
1098
//[[deprecated("Please use StandardColorf::darkturquoise() instead")]]
1099
static
Colorf
darkturquoise
;
1100
1102
//[[deprecated("Please use StandardColorf::darkviolet() instead")]]
1103
static
Colorf
darkviolet
;
1104
1106
//[[deprecated("Please use StandardColorf::deeppink() instead")]]
1107
static
Colorf
deeppink
;
1108
1110
//[[deprecated("Please use StandardColorf::deepskyblue() instead")]]
1111
static
Colorf
deepskyblue
;
1112
1114
//[[deprecated("Please use StandardColorf::dimgray() instead")]]
1115
static
Colorf
dimgray
;
1116
1118
//[[deprecated("Please use StandardColorf::dimgrey() instead")]]
1119
static
Colorf
dimgrey
;
1120
1122
//[[deprecated("Please use StandardColorf::dodgerblue() instead")]]
1123
static
Colorf
dodgerblue
;
1124
1126
//[[deprecated("Please use StandardColorf::firebrick() instead")]]
1127
static
Colorf
firebrick
;
1128
1130
//[[deprecated("Please use StandardColorf::floralwhite() instead")]]
1131
static
Colorf
floralwhite
;
1132
1134
//[[deprecated("Please use StandardColorf::forestgreen() instead")]]
1135
static
Colorf
forestgreen
;
1136
1138
//[[deprecated("Please use StandardColorf::fuchsia() instead")]]
1139
static
Colorf
fuchsia
;
1140
1142
//[[deprecated("Please use StandardColorf::gainsboro() instead")]]
1143
static
Colorf
gainsboro
;
1144
1146
//[[deprecated("Please use StandardColorf::ghostwhite() instead")]]
1147
static
Colorf
ghostwhite
;
1148
1150
//[[deprecated("Please use StandardColorf::gold() instead")]]
1151
static
Colorf
gold
;
1152
1154
//[[deprecated("Please use StandardColorf::goldenrod() instead")]]
1155
static
Colorf
goldenrod
;
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")]]
1167
static
Colorf
green
;
1168
1170
//[[deprecated("Please use StandardColorf::greenyellow() instead")]]
1171
static
Colorf
greenyellow
;
1172
1174
//[[deprecated("Please use StandardColorf::honeydew() instead")]]
1175
static
Colorf
honeydew
;
1176
1178
//[[deprecated("Please use StandardColorf::hotpink() instead")]]
1179
static
Colorf
hotpink
;
1180
1182
//[[deprecated("Please use StandardColorf::indianred() instead")]]
1183
static
Colorf
indianred
;
1184
1186
//[[deprecated("Please use StandardColorf::indigo() instead")]]
1187
static
Colorf
indigo
;
1188
1190
//[[deprecated("Please use StandardColorf::ivory() instead")]]
1191
static
Colorf
ivory
;
1192
1194
//[[deprecated("Please use StandardColorf::khaki() instead")]]
1195
static
Colorf
khaki
;
1196
1198
//[[deprecated("Please use StandardColorf::lavender() instead")]]
1199
static
Colorf
lavender
;
1200
1202
//[[deprecated("Please use StandardColorf::lavenderblush() instead")]]
1203
static
Colorf
lavenderblush
;
1204
1206
//[[deprecated("Please use StandardColorf::lawngreen() instead")]]
1207
static
Colorf
lawngreen
;
1208
1210
//[[deprecated("Please use StandardColorf::lemonchiffon() instead")]]
1211
static
Colorf
lemonchiffon
;
1212
1214
//[[deprecated("Please use StandardColorf::lightblue() instead")]]
1215
static
Colorf
lightblue
;
1216
1218
//[[deprecated("Please use StandardColorf::lightcoral() instead")]]
1219
static
Colorf
lightcoral
;
1220
1222
//[[deprecated("Please use StandardColorf::lightcyan() instead")]]
1223
static
Colorf
lightcyan
;
1224
1226
//[[deprecated("Please use StandardColorf::lightgoldenrodyellow() instead")]]
1227
static
Colorf
lightgoldenrodyellow
;
1228
1230
//[[deprecated("Please use StandardColorf::lightgray() instead")]]
1231
static
Colorf
lightgray
;
1232
1234
//[[deprecated("Please use StandardColorf::lightgreen() instead")]]
1235
static
Colorf
lightgreen
;
1236
1238
//[[deprecated("Please use StandardColorf::lightgrey() instead")]]
1239
static
Colorf
lightgrey
;
1240
1242
//[[deprecated("Please use StandardColorf::lightpink() instead")]]
1243
static
Colorf
lightpink
;
1244
1246
//[[deprecated("Please use StandardColorf::lightsalmon() instead")]]
1247
static
Colorf
lightsalmon
;
1248
1250
//[[deprecated("Please use StandardColorf::lightseagreen() instead")]]
1251
static
Colorf
lightseagreen
;
1252
1254
//[[deprecated("Please use StandardColorf::lightskyblue() instead")]]
1255
static
Colorf
lightskyblue
;
1256
1258
//[[deprecated("Please use StandardColorf::lightslategray() instead")]]
1259
static
Colorf
lightslategray
;
1260
1262
//[[deprecated("Please use StandardColorf::lightslategrey() instead")]]
1263
static
Colorf
lightslategrey
;
1264
1266
//[[deprecated("Please use StandardColorf::lightsteelblue() instead")]]
1267
static
Colorf
lightsteelblue
;
1268
1270
//[[deprecated("Please use StandardColorf::lightyellow() instead")]]
1271
static
Colorf
lightyellow
;
1272
1274
//[[deprecated("Please use StandardColorf::lime() instead")]]
1275
static
Colorf
lime
;
1276
1278
//[[deprecated("Please use StandardColorf::limegreen() instead")]]
1279
static
Colorf
limegreen
;
1280
1282
//[[deprecated("Please use StandardColorf::linen() instead")]]
1283
static
Colorf
linen
;
1284
1286
//[[deprecated("Please use StandardColorf::magenta() instead")]]
1287
static
Colorf
magenta
;
1288
1290
//[[deprecated("Please use StandardColorf::maroon() instead")]]
1291
static
Colorf
maroon
;
1292
1294
//[[deprecated("Please use StandardColorf::mediumaquamarine() instead")]]
1295
static
Colorf
mediumaquamarine
;
1296
1298
//[[deprecated("Please use StandardColorf::mediumblue() instead")]]
1299
static
Colorf
mediumblue
;
1300
1302
//[[deprecated("Please use StandardColorf::mediumorchid() instead")]]
1303
static
Colorf
mediumorchid
;
1304
1306
//[[deprecated("Please use StandardColorf::mediumpurple() instead")]]
1307
static
Colorf
mediumpurple
;
1308
1310
//[[deprecated("Please use StandardColorf::mediumseagreen() instead")]]
1311
static
Colorf
mediumseagreen
;
1312
1314
//[[deprecated("Please use StandardColorf::mediumslateblue() instead")]]
1315
static
Colorf
mediumslateblue
;
1316
1318
//[[deprecated("Please use StandardColorf::mediumspringgreen() instead")]]
1319
static
Colorf
mediumspringgreen
;
1320
1322
//[[deprecated("Please use StandardColorf::mediumturquoise() instead")]]
1323
static
Colorf
mediumturquoise
;
1324
1326
//[[deprecated("Please use StandardColorf::mediumvioletred() instead")]]
1327
static
Colorf
mediumvioletred
;
1328
1330
//[[deprecated("Please use StandardColorf::midnightblue() instead")]]
1331
static
Colorf
midnightblue
;
1332
1334
//[[deprecated("Please use StandardColorf::mintcream() instead")]]
1335
static
Colorf
mintcream
;
1336
1338
//[[deprecated("Please use StandardColorf::mistyrose() instead")]]
1339
static
Colorf
mistyrose
;
1340
1342
//[[deprecated("Please use StandardColorf::moccasin() instead")]]
1343
static
Colorf
moccasin
;
1344
1346
//[[deprecated("Please use StandardColorf::navajowhite() instead")]]
1347
static
Colorf
navajowhite
;
1348
1350
//[[deprecated("Please use StandardColorf::navy() instead")]]
1351
static
Colorf
navy
;
1352
1354
//[[deprecated("Please use StandardColorf::oldlace() instead")]]
1355
static
Colorf
oldlace
;
1356
1358
//[[deprecated("Please use StandardColorf::olive() instead")]]
1359
static
Colorf
olive
;
1360
1362
//[[deprecated("Please use StandardColorf::olivedrab() instead")]]
1363
static
Colorf
olivedrab
;
1364
1366
//[[deprecated("Please use StandardColorf::orange() instead")]]
1367
static
Colorf
orange
;
1368
1370
//[[deprecated("Please use StandardColorf::orangered() instead")]]
1371
static
Colorf
orangered
;
1372
1374
//[[deprecated("Please use StandardColorf::orchid() instead")]]
1375
static
Colorf
orchid
;
1376
1378
//[[deprecated("Please use StandardColorf::palegoldenrod() instead")]]
1379
static
Colorf
palegoldenrod
;
1380
1382
//[[deprecated("Please use StandardColorf::palegreen() instead")]]
1383
static
Colorf
palegreen
;
1384
1386
//[[deprecated("Please use StandardColorf::paleturquoise() instead")]]
1387
static
Colorf
paleturquoise
;
1388
1390
//[[deprecated("Please use StandardColorf::palevioletred() instead")]]
1391
static
Colorf
palevioletred
;
1392
1394
//[[deprecated("Please use StandardColorf::papayawhip() instead")]]
1395
static
Colorf
papayawhip
;
1396
1398
//[[deprecated("Please use StandardColorf::peachpuff() instead")]]
1399
static
Colorf
peachpuff
;
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")]]
1415
static
Colorf
powderblue
;
1416
1418
//[[deprecated("Please use StandardColorf::purple() instead")]]
1419
static
Colorf
purple
;
1420
1422
//[[deprecated("Please use StandardColorf::red() instead")]]
1423
static
Colorf
red
;
1424
1426
//[[deprecated("Please use StandardColorf::rosybrown() instead")]]
1427
static
Colorf
rosybrown
;
1428
1430
//[[deprecated("Please use StandardColorf::royalblue() instead")]]
1431
static
Colorf
royalblue
;
1432
1434
//[[deprecated("Please use StandardColorf::saddlebrown() instead")]]
1435
static
Colorf
saddlebrown
;
1436
1438
//[[deprecated("Please use StandardColorf::salmon() instead")]]
1439
static
Colorf
salmon
;
1440
1442
//[[deprecated("Please use StandardColorf::sandybrown() instead")]]
1443
static
Colorf
sandybrown
;
1444
1446
//[[deprecated("Please use StandardColorf::seagreen() instead")]]
1447
static
Colorf
seagreen
;
1448
1450
//[[deprecated("Please use StandardColorf::seashell() instead")]]
1451
static
Colorf
seashell
;
1452
1454
//[[deprecated("Please use StandardColorf::sienna() instead")]]
1455
static
Colorf
sienna
;
1456
1458
//[[deprecated("Please use StandardColorf::silver() instead")]]
1459
static
Colorf
silver
;
1460
1462
//[[deprecated("Please use StandardColorf::skyblue() instead")]]
1463
static
Colorf
skyblue
;
1464
1466
//[[deprecated("Please use StandardColorf::slateblue() instead")]]
1467
static
Colorf
slateblue
;
1468
1470
//[[deprecated("Please use StandardColorf::slategray() instead")]]
1471
static
Colorf
slategray
;
1472
1474
//[[deprecated("Please use StandardColorf::slategrey() instead")]]
1475
static
Colorf
slategrey
;
1476
1478
//[[deprecated("Please use StandardColorf::snow() instead")]]
1479
static
Colorf
snow
;
1480
1482
//[[deprecated("Please use StandardColorf::springgreen() instead")]]
1483
static
Colorf
springgreen
;
1484
1486
//[[deprecated("Please use StandardColorf::steelblue() instead")]]
1487
static
Colorf
steelblue
;
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")]]
1499
static
Colorf
thistle
;
1500
1502
//[[deprecated("Please use StandardColorf::tomato() instead")]]
1503
static
Colorf
tomato
;
1504
1506
//[[deprecated("Please use StandardColorf::turquoise() instead")]]
1507
static
Colorf
turquoise
;
1508
1510
//[[deprecated("Please use StandardColorf::violet() instead")]]
1511
static
Colorf
violet
;
1512
1514
//[[deprecated("Please use StandardColorf::wheat() instead")]]
1515
static
Colorf
wheat
;
1516
1518
//[[deprecated("Please use StandardColorf::white() instead")]]
1519
static
Colorf
white
;
1520
1522
//[[deprecated("Please use StandardColorf::whitesmoke() instead")]]
1523
static
Colorf
whitesmoke
;
1524
1526
//[[deprecated("Please use StandardColorf::yellow() instead")]]
1527
static
Colorf
yellow
;
1528
1530
//[[deprecated("Please use StandardColorf::yellowgreen() instead")]]
1531
static
Colorf
yellowgreen
;
1532
1534
//[[deprecated("Please use StandardColorf::transparent() instead")]]
1535
static
Colorf
transparent
;
1536
1537
//[[deprecated("Please use StandardColorf::gray10() instead")]]
1538
static
Colorf
gray10
;
1539
1540
//[[deprecated("Please use StandardColorf::gray20() instead")]]
1541
static
Colorf
gray20
;
1542
1543
//[[deprecated("Please use StandardColorf::gray30() instead")]]
1544
static
Colorf
gray30
;
1545
1546
//[[deprecated("Please use StandardColorf::gray40() instead")]]
1547
static
Colorf
gray40
;
1548
1549
//[[deprecated("Please use StandardColorf::gray50() instead")]]
1550
static
Colorf
gray50
;
1551
1552
//[[deprecated("Please use StandardColorf::gray60() instead")]]
1553
static
Colorf
gray60
;
1554
1555
//[[deprecated("Please use StandardColorf::gray70() instead")]]
1556
static
Colorf
gray70
;
1557
1558
//[[deprecated("Please use StandardColorf::gray80() instead")]]
1559
static
Colorf
gray80
;
1560
1561
//[[deprecated("Please use StandardColorf::gray90() instead")]]
1562
static
Colorf
gray90
;
1563
};
1564
1566
class
StandardColor
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
1729
class
StandardColorf
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
}
clan::Color
Color description class.
Definition
color.h:46
clan::Color::get_bgr8
unsigned int get_bgr8() const
Returns the color in 0BGR8888 format.
Definition
color.h:104
clan::Color::deeppink
static Color deeppink
Definition
color.h:288
clan::Color::get_green_f
float get_green_f() const
Returns the green color component, in the range 0-1.
Definition
color.h:92
clan::Color::mediumblue
static Color mediumblue
Definition
color.h:480
clan::Color::turquoise
static Color turquoise
Definition
color.h:688
clan::Color::grey
static Color grey
Definition
color.h:344
clan::Color::bisque
static Color bisque
Definition
color.h:152
clan::Color::navajowhite
static Color navajowhite
Definition
color.h:528
clan::Color::darkolivegreen
static Color darkolivegreen
Definition
color.h:244
clan::Color::gray90
static Color gray90
Definition
color.h:743
clan::Color::dimgray
static Color dimgray
Definition
color.h:296
clan::Color::crimson
static Color crimson
Definition
color.h:204
clan::Color::gray40
static Color gray40
Definition
color.h:728
clan::Color::violet
static Color violet
Definition
color.h:692
clan::Color::deepskyblue
static Color deepskyblue
Definition
color.h:292
clan::Color::set_blue
void set_blue(unsigned char value)
Set blue color component, in the range 0-255.
Definition
color.h:755
clan::Color::orangered
static Color orangered
Definition
color.h:552
clan::Color::orange
static Color orange
Definition
color.h:548
clan::Color::palevioletred
static Color palevioletred
Definition
color.h:572
clan::Color::set_argb8
void set_argb8(unsigned int color)
Set color based on argb color components.
clan::Color::springgreen
static Color springgreen
Definition
color.h:664
clan::Color::linen
static Color linen
Definition
color.h:464
clan::Color::ghostwhite
static Color ghostwhite
Definition
color.h:328
clan::Color::darkgray
static Color darkgray
Definition
color.h:224
clan::Color::darkgoldenrod
static Color darkgoldenrod
Definition
color.h:220
clan::Color::pink
static Color pink
Definition
color.h:588
clan::Color::slategray
static Color slategray
Definition
color.h:652
clan::Color::blueviolet
static Color blueviolet
Definition
color.h:168
clan::Color::purple
static Color purple
Definition
color.h:600
clan::Color::lightyellow
static Color lightyellow
Definition
color.h:452
clan::Color::salmon
static Color salmon
Definition
color.h:620
clan::Color::set_colorf
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
clan::Color::get_blue
unsigned char get_blue() const
Returns the blue color component, in the range 0-255.
Definition
color.h:83
clan::Color::mediumturquoise
static Color mediumturquoise
Definition
color.h:504
clan::Color::moccasin
static Color moccasin
Definition
color.h:524
clan::Color::thistle
static Color thistle
Definition
color.h:680
clan::Color::lightgray
static Color lightgray
Definition
color.h:412
clan::Color::dimgrey
static Color dimgrey
Definition
color.h:300
clan::Color::gray20
static Color gray20
Definition
color.h:722
clan::Color::yellowgreen
static Color yellowgreen
Definition
color.h:712
clan::Color::set_alpha_f
void set_alpha_f(float value)
Set alpha color component, in the range 0-1.
Definition
color.h:758
clan::Color::set_bgra8
void set_bgra8(unsigned int color)
Set color based on rgba color components.
clan::Color::palegreen
static Color palegreen
Definition
color.h:564
clan::Color::limegreen
static Color limegreen
Definition
color.h:460
clan::Color::firebrick
static Color firebrick
Definition
color.h:308
clan::Color::lavender
static Color lavender
Definition
color.h:380
clan::Color::lavenderblush
static Color lavenderblush
Definition
color.h:384
clan::Color::lightslategrey
static Color lightslategrey
Definition
color.h:444
clan::Color::floralwhite
static Color floralwhite
Definition
color.h:312
clan::Color::get_green
unsigned char get_green() const
Returns the green color component, in the range 0-255.
Definition
color.h:80
clan::Color::seashell
static Color seashell
Definition
color.h:632
clan::Color::maroon
static Color maroon
Definition
color.h:472
clan::Color::operator==
bool operator==(const Color &c) const
Color == Color operator (deep compare)
Definition
color.h:115
clan::Color::slateblue
static Color slateblue
Definition
color.h:648
clan::Color::aliceblue
static Color aliceblue
Definition
color.h:128
clan::Color::gray60
static Color gray60
Definition
color.h:734
clan::Color::gold
static Color gold
Definition
color.h:332
clan::Color::steelblue
static Color steelblue
Definition
color.h:668
clan::Color::gray70
static Color gray70
Definition
color.h:737
clan::Color::lime
static Color lime
Definition
color.h:456
clan::Color::gray50
static Color gray50
Definition
color.h:731
clan::Color::darkslategray
static Color darkslategray
Definition
color.h:272
clan::Color::sienna
static Color sienna
Definition
color.h:636
clan::Color::ivory
static Color ivory
Definition
color.h:372
clan::Color::cadetblue
static Color cadetblue
Definition
color.h:180
clan::Color::mediumseagreen
static Color mediumseagreen
Definition
color.h:492
clan::Color::mediumspringgreen
static Color mediumspringgreen
Definition
color.h:500
clan::Color::cornflowerblue
static Color cornflowerblue
Definition
color.h:196
clan::Color::dodgerblue
static Color dodgerblue
Definition
color.h:304
clan::Color::red
static Color red
Definition
color.h:604
clan::Color::khaki
static Color khaki
Definition
color.h:376
clan::Color::tan
static Color tan
Definition
color.h:672
clan::Color::olive
static Color olive
Definition
color.h:540
clan::Color::get_abgr8
unsigned int get_abgr8() const
Returns the color in ABGR8888 format.
Definition
color.h:101
clan::Color::silver
static Color silver
Definition
color.h:640
clan::Color::mediumorchid
static Color mediumorchid
Definition
color.h:484
clan::Color::yellow
static Color yellow
Definition
color.h:708
clan::Color::whitesmoke
static Color whitesmoke
Definition
color.h:704
clan::Color::darkkhaki
static Color darkkhaki
Definition
color.h:236
clan::Color::lightsteelblue
static Color lightsteelblue
Definition
color.h:448
clan::Color::midnightblue
static Color midnightblue
Definition
color.h:512
clan::Color::lightseagreen
static Color lightseagreen
Definition
color.h:432
clan::Color::darkmagenta
static Color darkmagenta
Definition
color.h:240
clan::Color::Color
Color(unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha=255)
Constructs a color.
Definition
color.h:62
clan::Color::darkturquoise
static Color darkturquoise
Definition
color.h:280
clan::Color::lemonchiffon
static Color lemonchiffon
Definition
color.h:392
clan::Color::get_bgra8
unsigned int get_bgra8() const
Returns the color in BGRA8888 format.
Definition
color.h:110
clan::Color::lawngreen
static Color lawngreen
Definition
color.h:388
clan::Color::hotpink
static Color hotpink
Definition
color.h:360
clan::Color::seagreen
static Color seagreen
Definition
color.h:628
clan::Color::peru
static Color peru
Definition
color.h:584
clan::Color::beige
static Color beige
Definition
color.h:148
clan::Color::get_red
unsigned char get_red() const
Returns the red color component, in the range 0-255.
Definition
color.h:77
clan::Color::black
static Color black
Definition
color.h:156
clan::Color::brown
static Color brown
Definition
color.h:172
clan::Color::mediumpurple
static Color mediumpurple
Definition
color.h:488
clan::Color::set_color
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
clan::Color::mediumvioletred
static Color mediumvioletred
Definition
color.h:508
clan::Color::royalblue
static Color royalblue
Definition
color.h:612
clan::Color::blanchedalmond
static Color blanchedalmond
Definition
color.h:160
clan::Color::honeydew
static Color honeydew
Definition
color.h:356
clan::Color::set_red
void set_red(unsigned char value)
Set red color component, in the range 0-255.
Definition
color.h:749
clan::Color::teal
static Color teal
Definition
color.h:676
clan::Color::gray10
static Color gray10
Definition
color.h:719
clan::Color::cornsilk
static Color cornsilk
Definition
color.h:200
clan::Color::operator!=
bool operator!=(const Color &c) const
Color != Color operator (deep compare)
Definition
color.h:121
clan::Color::burlywood
static Color burlywood
Definition
color.h:176
clan::Color::chartreuse
static Color chartreuse
Definition
color.h:184
clan::Color::lightskyblue
static Color lightskyblue
Definition
color.h:436
clan::Color::set_green_f
void set_green_f(float value)
Set green color component, in the range 0-1.
Definition
color.h:764
clan::Color::saddlebrown
static Color saddlebrown
Definition
color.h:616
clan::Color::darkred
static Color darkred
Definition
color.h:256
clan::Color::peachpuff
static Color peachpuff
Definition
color.h:580
clan::Color::palegoldenrod
static Color palegoldenrod
Definition
color.h:560
clan::Color::gray80
static Color gray80
Definition
color.h:740
clan::Color::darkslategrey
static Color darkslategrey
Definition
color.h:276
clan::Color::Color
Color(const Colorf &)
clan::Color::get_blue_f
float get_blue_f() const
Returns the blue color component, in the range 0-1.
Definition
color.h:95
clan::Color::set_rgba8
void set_rgba8(unsigned int color)
Set color based on rgba color components.
clan::Color::set_blue_f
void set_blue_f(float value)
Set blue color component, in the range 0-1.
Definition
color.h:767
clan::Color::coral
static Color coral
Definition
color.h:192
clan::Color::paleturquoise
static Color paleturquoise
Definition
color.h:568
clan::Color::get_argb8
unsigned int get_argb8() const
Returns the color in ARGB8888 format.
Definition
color.h:98
clan::Color::mediumaquamarine
static Color mediumaquamarine
Definition
color.h:476
clan::Color::set_rgb8
void set_rgb8(unsigned int color)
Set color based on rgb color components. Alpha is set to 255.
clan::Color::set_red_f
void set_red_f(float value)
Set red color component, in the range 0-1.
Definition
color.h:761
clan::Color::darkcyan
static Color darkcyan
Definition
color.h:216
clan::Color::mediumslateblue
static Color mediumslateblue
Definition
color.h:496
clan::Color::gray
static Color gray
Definition
color.h:340
clan::Color::cyan
static Color cyan
Definition
color.h:208
clan::Color::orchid
static Color orchid
Definition
color.h:556
clan::Color::azure
static Color azure
Definition
color.h:144
clan::Color::lightpink
static Color lightpink
Definition
color.h:424
clan::Color::goldenrod
static Color goldenrod
Definition
color.h:336
clan::Color::magenta
static Color magenta
Definition
color.h:468
clan::Color::papayawhip
static Color papayawhip
Definition
color.h:576
clan::Color::Color
Color()
Constructs a color.
Definition
color.h:49
clan::Color::sandybrown
static Color sandybrown
Definition
color.h:624
clan::Color::darkseagreen
static Color darkseagreen
Definition
color.h:264
clan::Color::set_green
void set_green(unsigned char value)
Set green color component, in the range 0-255.
Definition
color.h:752
clan::Color::skyblue
static Color skyblue
Definition
color.h:644
clan::Color::aqua
static Color aqua
Definition
color.h:136
clan::Color::Color
Color(const std::string &hexstr)
Constructs a color.
clan::Color::lightcoral
static Color lightcoral
Definition
color.h:400
clan::Color::indianred
static Color indianred
Definition
color.h:364
clan::Color::antiquewhite
static Color antiquewhite
Definition
color.h:132
clan::Color::get_red_f
float get_red_f() const
Returns the red color component, in the range 0-1.
Definition
color.h:89
clan::Color::aquamarine
static Color aquamarine
Definition
color.h:140
clan::Color::chocolate
static Color chocolate
Definition
color.h:188
clan::Color::fuchsia
static Color fuchsia
Definition
color.h:320
clan::Color::darkgrey
static Color darkgrey
Definition
color.h:232
clan::Color::indigo
static Color indigo
Definition
color.h:368
clan::Color::mistyrose
static Color mistyrose
Definition
color.h:520
clan::Color::lightsalmon
static Color lightsalmon
Definition
color.h:428
clan::Color::powderblue
static Color powderblue
Definition
color.h:596
clan::Color::navy
static Color navy
Definition
color.h:532
clan::Color::tomato
static Color tomato
Definition
color.h:684
clan::Color::get_alpha_f
float get_alpha_f() const
Returns the alpha color component, in the range 0-1.
Definition
color.h:86
clan::Color::white
static Color white
Definition
color.h:700
clan::Color::mintcream
static Color mintcream
Definition
color.h:516
clan::Color::rosybrown
static Color rosybrown
Definition
color.h:608
clan::Color::darkorchid
static Color darkorchid
Definition
color.h:252
clan::Color::olivedrab
static Color olivedrab
Definition
color.h:544
clan::Color::get_alpha
unsigned char get_alpha() const
Returns the alpha color component, in the range 0-255.
Definition
color.h:74
clan::Color::darksalmon
static Color darksalmon
Definition
color.h:260
clan::Color::lightgrey
static Color lightgrey
Definition
color.h:420
clan::Color::gray30
static Color gray30
Definition
color.h:725
clan::Color::lightgreen
static Color lightgreen
Definition
color.h:416
clan::Color::transparent
static Color transparent
rgba(0, 0, 0, 0).
Definition
color.h:716
clan::Color::snow
static Color snow
Definition
color.h:660
clan::Color::lightblue
static Color lightblue
Definition
color.h:396
clan::Color::darkblue
static Color darkblue
Definition
color.h:212
clan::Color::get_rgba8
unsigned int get_rgba8() const
Returns the color in RGBA8888 format.
Definition
color.h:107
clan::Color::lightgoldenrodyellow
static Color lightgoldenrodyellow
Definition
color.h:408
clan::Color::greenyellow
static Color greenyellow
Definition
color.h:352
clan::Color::darkorange
static Color darkorange
Definition
color.h:248
clan::Color::slategrey
static Color slategrey
Definition
color.h:656
clan::Color::set_alpha
void set_alpha(unsigned char value)
Set alpha color component, in the range 0-255.
Definition
color.h:746
clan::Color::forestgreen
static Color forestgreen
Definition
color.h:316
clan::Color::gainsboro
static Color gainsboro
Definition
color.h:324
clan::Color::lightcyan
static Color lightcyan
Definition
color.h:404
clan::Color::darkslateblue
static Color darkslateblue
Definition
color.h:268
clan::Color::darkgreen
static Color darkgreen
Definition
color.h:228
clan::Color::lightslategray
static Color lightslategray
Definition
color.h:440
clan::Color::wheat
static Color wheat
Definition
color.h:696
clan::Color::green
static Color green
Definition
color.h:348
clan::Color::darkviolet
static Color darkviolet
Definition
color.h:284
clan::Color::blue
static Color blue
Definition
color.h:164
clan::Color::oldlace
static Color oldlace
Definition
color.h:536
clan::Color::plum
static Color plum
Definition
color.h:592
clan::Colorf
Floating point color description class (for float).
Definition
color.h:799
clan::Colorf::gray20
static Colorf gray20
Definition
color.h:1541
clan::Colorf::thistle
static Colorf thistle
Definition
color.h:1499
clan::Colorf::darkseagreen
static Colorf darkseagreen
Definition
color.h:1083
clan::Colorf::Colorf
Colorf(unsigned char r, unsigned char g, unsigned char b, unsigned char a=255)
Constructs a color.
Definition
color.h:846
clan::Colorf::palegoldenrod
static Colorf palegoldenrod
Definition
color.h:1379
clan::Colorf::dodgerblue
static Colorf dodgerblue
Definition
color.h:1123
clan::Colorf::gray40
static Colorf gray40
Definition
color.h:1547
clan::Colorf::darkgrey
static Colorf darkgrey
Definition
color.h:1051
clan::Colorf::gray70
static Colorf gray70
Definition
color.h:1556
clan::Colorf::white
static Colorf white
Definition
color.h:1519
clan::Colorf::chartreuse
static Colorf chartreuse
Definition
color.h:1003
clan::Colorf::ivory
static Colorf ivory
Definition
color.h:1191
clan::Colorf::aquamarine
static Colorf aquamarine
Definition
color.h:959
clan::Colorf::coral
static Colorf coral
Definition
color.h:1011
clan::Colorf::moccasin
static Colorf moccasin
Definition
color.h:1343
clan::Colorf::peachpuff
static Colorf peachpuff
Definition
color.h:1399
clan::Colorf::dimgray
static Colorf dimgray
Definition
color.h:1115
clan::Colorf::orange
static Colorf orange
Definition
color.h:1367
clan::Colorf::gray10
static Colorf gray10
Definition
color.h:1538
clan::Colorf::royalblue
static Colorf royalblue
Definition
color.h:1431
clan::Colorf::find_color
static bool find_color(const std::string &name, Colorf &out_color)
Find and returns the static color matching a string.
clan::Colorf::Colorf
Colorf(const float *array_rgba)
Constructs a color.
Definition
color.h:825
clan::Colorf::navajowhite
static Colorf navajowhite
Definition
color.h:1347
clan::Colorf::sandybrown
static Colorf sandybrown
Definition
color.h:1443
clan::Colorf::purple
static Colorf purple
Definition
color.h:1419
clan::Colorf::mediumaquamarine
static Colorf mediumaquamarine
Definition
color.h:1295
clan::Colorf::snow
static Colorf snow
Definition
color.h:1479
clan::Colorf::Colorf
Colorf()
Constructs a color.
Definition
color.h:802
clan::Colorf::gray30
static Colorf gray30
Definition
color.h:1544
clan::Colorf::darkgoldenrod
static Colorf darkgoldenrod
Definition
color.h:1039
clan::Colorf::azure
static Colorf azure
Definition
color.h:963
clan::Colorf::set_green
void set_green(float value)
Set green color component, in the range 0-1.
Definition
color.h:914
clan::Colorf::rosybrown
static Colorf rosybrown
Definition
color.h:1427
clan::Colorf::dimgrey
static Colorf dimgrey
Definition
color.h:1119
clan::Colorf::teal
static Colorf teal
Definition
color.h:1495
clan::Colorf::limegreen
static Colorf limegreen
Definition
color.h:1279
clan::Colorf::Colorf
Colorf(const Vec4f &color)
Constructs a color.
Definition
color.h:833
clan::Colorf::mediumpurple
static Colorf mediumpurple
Definition
color.h:1307
clan::Colorf::transparent
static Colorf transparent
rgba(0, 0, 0, 0).
Definition
color.h:1535
clan::Colorf::floralwhite
static Colorf floralwhite
Definition
color.h:1131
clan::Colorf::palegreen
static Colorf palegreen
Definition
color.h:1383
clan::Colorf::gray90
static Colorf gray90
Definition
color.h:1562
clan::Colorf::ghostwhite
static Colorf ghostwhite
Definition
color.h:1147
clan::Colorf::wheat
static Colorf wheat
Definition
color.h:1515
clan::Colorf::orchid
static Colorf orchid
Definition
color.h:1375
clan::Colorf::lightgreen
static Colorf lightgreen
Definition
color.h:1235
clan::Colorf::lawngreen
static Colorf lawngreen
Definition
color.h:1207
clan::Colorf::lightslategrey
static Colorf lightslategrey
Definition
color.h:1263
clan::Colorf::cornflowerblue
static Colorf cornflowerblue
Definition
color.h:1015
clan::Colorf::mediumblue
static Colorf mediumblue
Definition
color.h:1299
clan::Colorf::lightslategray
static Colorf lightslategray
Definition
color.h:1259
clan::Colorf::lightgray
static Colorf lightgray
Definition
color.h:1231
clan::Colorf::black
static Colorf black
Definition
color.h:975
clan::Colorf::aliceblue
static Colorf aliceblue
Definition
color.h:947
clan::Colorf::fuchsia
static Colorf fuchsia
Definition
color.h:1139
clan::Colorf::get_alpha
float get_alpha() const
Get Alpha.
Definition
color.h:896
clan::Colorf::slategrey
static Colorf slategrey
Definition
color.h:1475
clan::Colorf::lightskyblue
static Colorf lightskyblue
Definition
color.h:1255
clan::Colorf::mediumturquoise
static Colorf mediumturquoise
Definition
color.h:1323
clan::Colorf::mintcream
static Colorf mintcream
Definition
color.h:1335
clan::Colorf::magenta
static Colorf magenta
Definition
color.h:1287
clan::Colorf::gray80
static Colorf gray80
Definition
color.h:1559
clan::Colorf::grey
static Colorf grey
Definition
color.h:1163
clan::Colorf::yellowgreen
static Colorf yellowgreen
Definition
color.h:1531
clan::Colorf::tan
static Colorf tan
Definition
color.h:1491
clan::Colorf::mistyrose
static Colorf mistyrose
Definition
color.h:1339
clan::Colorf::Colorf
Colorf(const Color &color)
Definition
color.h:865
clan::Colorf::powderblue
static Colorf powderblue
Definition
color.h:1415
clan::Colorf::brown
static Colorf brown
Definition
color.h:991
clan::Colorf::get_green
float get_green() const
Get Green.
Definition
color.h:886
clan::Colorf::blueviolet
static Colorf blueviolet
Definition
color.h:987
clan::Colorf::get_red
float get_red() const
Get Red.
Definition
color.h:881
clan::Colorf::peru
static Colorf peru
Definition
color.h:1403
clan::Colorf::khaki
static Colorf khaki
Definition
color.h:1195
clan::Colorf::olivedrab
static Colorf olivedrab
Definition
color.h:1363
clan::Colorf::lightsalmon
static Colorf lightsalmon
Definition
color.h:1247
clan::Colorf::maroon
static Colorf maroon
Definition
color.h:1291
clan::Colorf::darkturquoise
static Colorf darkturquoise
Definition
color.h:1099
clan::Colorf::orangered
static Colorf orangered
Definition
color.h:1371
clan::Colorf::papayawhip
static Colorf papayawhip
Definition
color.h:1395
clan::Colorf::slategray
static Colorf slategray
Definition
color.h:1471
clan::Colorf::gray
static Colorf gray
Definition
color.h:1159
clan::Colorf::mediumspringgreen
static Colorf mediumspringgreen
Definition
color.h:1319
clan::Colorf::skyblue
static Colorf skyblue
Definition
color.h:1463
clan::Colorf::darkgreen
static Colorf darkgreen
Definition
color.h:1047
clan::Colorf::red
static Colorf red
Definition
color.h:1423
clan::Colorf::darkolivegreen
static Colorf darkolivegreen
Definition
color.h:1063
clan::Colorf::lightseagreen
static Colorf lightseagreen
Definition
color.h:1251
clan::Colorf::darkblue
static Colorf darkblue
Definition
color.h:1031
clan::Colorf::get_blue
float get_blue() const
Get Blue.
Definition
color.h:891
clan::Colorf::gainsboro
static Colorf gainsboro
Definition
color.h:1143
clan::Colorf::goldenrod
static Colorf goldenrod
Definition
color.h:1155
clan::Colorf::lightgoldenrodyellow
static Colorf lightgoldenrodyellow
Definition
color.h:1227
clan::Colorf::seashell
static Colorf seashell
Definition
color.h:1451
clan::Colorf::pink
static Colorf pink
Definition
color.h:1407
clan::Colorf::lightsteelblue
static Colorf lightsteelblue
Definition
color.h:1267
clan::Colorf::antiquewhite
static Colorf antiquewhite
Definition
color.h:951
clan::Colorf::gold
static Colorf gold
Definition
color.h:1151
clan::Colorf::Colorf
Colorf(const std::string &hexstr)
Constructs a color.
Definition
color.h:873
clan::Colorf::firebrick
static Colorf firebrick
Definition
color.h:1127
clan::Colorf::cadetblue
static Colorf cadetblue
Definition
color.h:999
clan::Colorf::green
static Colorf green
Definition
color.h:1167
clan::Colorf::palevioletred
static Colorf palevioletred
Definition
color.h:1391
clan::Colorf::darkviolet
static Colorf darkviolet
Definition
color.h:1103
clan::Colorf::mediumvioletred
static Colorf mediumvioletred
Definition
color.h:1327
clan::Colorf::lightpink
static Colorf lightpink
Definition
color.h:1243
clan::Colorf::cyan
static Colorf cyan
Definition
color.h:1027
clan::Colorf::slateblue
static Colorf slateblue
Definition
color.h:1467
clan::Colorf::Colorf
Colorf(int r, int g, int b, int a=255)
Constructs a color.
Definition
color.h:860
clan::Colorf::lightgrey
static Colorf lightgrey
Definition
color.h:1239
clan::Colorf::indigo
static Colorf indigo
Definition
color.h:1187
clan::Colorf::bisque
static Colorf bisque
Definition
color.h:971
clan::Colorf::darkslategray
static Colorf darkslategray
Definition
color.h:1091
clan::Colorf::tomato
static Colorf tomato
Definition
color.h:1503
clan::Colorf::blue
static Colorf blue
Definition
color.h:983
clan::Colorf::steelblue
static Colorf steelblue
Definition
color.h:1487
clan::Colorf::mediumseagreen
static Colorf mediumseagreen
Definition
color.h:1311
clan::Colorf::darkorchid
static Colorf darkorchid
Definition
color.h:1071
clan::Colorf::darkcyan
static Colorf darkcyan
Definition
color.h:1035
clan::Colorf::lime
static Colorf lime
Definition
color.h:1275
clan::Colorf::gray60
static Colorf gray60
Definition
color.h:1553
clan::Colorf::yellow
static Colorf yellow
Definition
color.h:1527
clan::Colorf::whitesmoke
static Colorf whitesmoke
Definition
color.h:1523
clan::Colorf::darkslategrey
static Colorf darkslategrey
Definition
color.h:1095
clan::Colorf::set_blue
void set_blue(float value)
Set blue color component, in the range 0-1.
Definition
color.h:917
clan::Colorf::lavender
static Colorf lavender
Definition
color.h:1199
clan::Colorf::midnightblue
static Colorf midnightblue
Definition
color.h:1331
clan::Colorf::darkred
static Colorf darkred
Definition
color.h:1075
clan::Colorf::olive
static Colorf olive
Definition
color.h:1359
clan::Colorf::lightyellow
static Colorf lightyellow
Definition
color.h:1271
clan::Colorf::navy
static Colorf navy
Definition
color.h:1351
clan::Colorf::beige
static Colorf beige
Definition
color.h:967
clan::Colorf::salmon
static Colorf salmon
Definition
color.h:1439
clan::Colorf::mediumslateblue
static Colorf mediumslateblue
Definition
color.h:1315
clan::Colorf::forestgreen
static Colorf forestgreen
Definition
color.h:1135
clan::Colorf::set_red
void set_red(float value)
Set red color component, in the range 0-1.
Definition
color.h:911
clan::Colorf::lemonchiffon
static Colorf lemonchiffon
Definition
color.h:1211
clan::Colorf::darkorange
static Colorf darkorange
Definition
color.h:1067
clan::Colorf::blanchedalmond
static Colorf blanchedalmond
Definition
color.h:979
clan::Colorf::operator==
bool operator==(const Colorf &c) const
Color == Color operator (deep compare)
Definition
color.h:920
clan::Colorf::deepskyblue
static Colorf deepskyblue
Definition
color.h:1111
clan::Colorf::springgreen
static Colorf springgreen
Definition
color.h:1483
clan::Colorf::crimson
static Colorf crimson
Definition
color.h:1023
clan::Colorf::oldlace
static Colorf oldlace
Definition
color.h:1355
clan::Colorf::darkmagenta
static Colorf darkmagenta
Definition
color.h:1059
clan::Colorf::darksalmon
static Colorf darksalmon
Definition
color.h:1079
clan::Colorf::operator!=
bool operator!=(const Colorf &c) const
Color != Color operator (deep compare)
Definition
color.h:926
clan::Colorf::lightcyan
static Colorf lightcyan
Definition
color.h:1223
clan::Colorf::gray50
static Colorf gray50
Definition
color.h:1550
clan::Colorf::greenyellow
static Colorf greenyellow
Definition
color.h:1171
clan::Colorf::darkslateblue
static Colorf darkslateblue
Definition
color.h:1087
clan::Colorf::paleturquoise
static Colorf paleturquoise
Definition
color.h:1387
clan::Colorf::Colorf
Colorf(float r, float g, float b, float a=1.0f)
Constructs a color.
Definition
color.h:815
clan::Colorf::burlywood
static Colorf burlywood
Definition
color.h:995
clan::Colorf::turquoise
static Colorf turquoise
Definition
color.h:1507
clan::Colorf::plum
static Colorf plum
Definition
color.h:1411
clan::Colorf::hotpink
static Colorf hotpink
Definition
color.h:1179
clan::Colorf::lightcoral
static Colorf lightcoral
Definition
color.h:1219
clan::Colorf::set_alpha
void set_alpha(float value)
Set alpha color component, in the range 0-1.
Definition
color.h:908
clan::Colorf::lavenderblush
static Colorf lavenderblush
Definition
color.h:1203
clan::Colorf::lightblue
static Colorf lightblue
Definition
color.h:1215
clan::Colorf::darkgray
static Colorf darkgray
Definition
color.h:1043
clan::Colorf::normalize
void normalize()
Normalize the color by ensuring that all color values lie inbetween (0.0, 1.0)
Definition
color.h:899
clan::Colorf::cornsilk
static Colorf cornsilk
Definition
color.h:1019
clan::Colorf::indianred
static Colorf indianred
Definition
color.h:1183
clan::Colorf::linen
static Colorf linen
Definition
color.h:1283
clan::Colorf::chocolate
static Colorf chocolate
Definition
color.h:1007
clan::Colorf::seagreen
static Colorf seagreen
Definition
color.h:1447
clan::Colorf::sienna
static Colorf sienna
Definition
color.h:1455
clan::Colorf::deeppink
static Colorf deeppink
Definition
color.h:1107
clan::Colorf::aqua
static Colorf aqua
Definition
color.h:955
clan::Colorf::silver
static Colorf silver
Definition
color.h:1459
clan::Colorf::mediumorchid
static Colorf mediumorchid
Definition
color.h:1303
clan::Colorf::darkkhaki
static Colorf darkkhaki
Definition
color.h:1055
clan::Colorf::honeydew
static Colorf honeydew
Definition
color.h:1175
clan::Colorf::saddlebrown
static Colorf saddlebrown
Definition
color.h:1435
clan::Colorf::violet
static Colorf violet
Definition
color.h:1511
clan::StandardColor
Standard X11/HTML named colors.
Definition
color.h:1567
clan::StandardColor::lightslategray
static Color lightslategray()
Definition
color.h:1647
clan::StandardColor::lightblue
static Color lightblue()
Definition
color.h:1636
clan::StandardColor::steelblue
static Color steelblue()
Definition
color.h:1704
clan::StandardColor::gray80
static Color gray80()
Definition
color.h:1724
clan::StandardColor::whitesmoke
static Color whitesmoke()
Definition
color.h:1714
clan::StandardColor::aqua
static Color aqua()
Definition
color.h:1571
clan::StandardColor::mediumspringgreen
static Color mediumspringgreen()
Definition
color.h:1662
clan::StandardColor::indigo
static Color indigo()
Definition
color.h:1629
clan::StandardColor::papayawhip
static Color papayawhip()
Definition
color.h:1681
clan::StandardColor::peru
static Color peru()
Definition
color.h:1683
clan::StandardColor::navy
static Color navy()
Definition
color.h:1670
clan::StandardColor::lightgray
static Color lightgray()
Definition
color.h:1640
clan::StandardColor::magenta
static Color magenta()
Definition
color.h:1654
clan::StandardColor::wheat
static Color wheat()
Definition
color.h:1712
clan::StandardColor::cadetblue
static Color cadetblue()
Definition
color.h:1582
clan::StandardColor::lavender
static Color lavender()
Definition
color.h:1632
clan::StandardColor::darksalmon
static Color darksalmon()
Definition
color.h:1602
clan::StandardColor::darkgoldenrod
static Color darkgoldenrod()
Definition
color.h:1592
clan::StandardColor::pink
static Color pink()
Definition
color.h:1684
clan::StandardColor::gold
static Color gold()
Definition
color.h:1620
clan::StandardColor::honeydew
static Color honeydew()
Definition
color.h:1626
clan::StandardColor::chartreuse
static Color chartreuse()
Definition
color.h:1583
clan::StandardColor::ivory
static Color ivory()
Definition
color.h:1630
clan::StandardColor::cornsilk
static Color cornsilk()
Definition
color.h:1587
clan::StandardColor::maroon
static Color maroon()
Definition
color.h:1655
clan::StandardColor::gray20
static Color gray20()
Definition
color.h:1718
clan::StandardColor::darkslategrey
static Color darkslategrey()
Definition
color.h:1606
clan::StandardColor::deepskyblue
static Color deepskyblue()
Definition
color.h:1610
clan::StandardColor::lavenderblush
static Color lavenderblush()
Definition
color.h:1633
clan::StandardColor::darkolivegreen
static Color darkolivegreen()
Definition
color.h:1598
clan::StandardColor::mediumblue
static Color mediumblue()
Definition
color.h:1657
clan::StandardColor::chocolate
static Color chocolate()
Definition
color.h:1584
clan::StandardColor::lightsteelblue
static Color lightsteelblue()
Definition
color.h:1649
clan::StandardColor::darkviolet
static Color darkviolet()
Definition
color.h:1608
clan::StandardColor::darkblue
static Color darkblue()
Definition
color.h:1590
clan::StandardColor::yellowgreen
static Color yellowgreen()
Definition
color.h:1716
clan::StandardColor::sienna
static Color sienna()
Definition
color.h:1696
clan::StandardColor::goldenrod
static Color goldenrod()
Definition
color.h:1621
clan::StandardColor::thistle
static Color thistle()
Definition
color.h:1707
clan::StandardColor::lightpink
static Color lightpink()
Definition
color.h:1643
clan::StandardColor::greenyellow
static Color greenyellow()
Definition
color.h:1625
clan::StandardColor::teal
static Color teal()
Definition
color.h:1706
clan::StandardColor::lightseagreen
static Color lightseagreen()
Definition
color.h:1645
clan::StandardColor::coral
static Color coral()
Definition
color.h:1585
clan::StandardColor::gray10
static Color gray10()
Definition
color.h:1717
clan::StandardColor::darkkhaki
static Color darkkhaki()
Definition
color.h:1596
clan::StandardColor::darkslategray
static Color darkslategray()
Definition
color.h:1605
clan::StandardColor::dimgray
static Color dimgray()
Definition
color.h:1611
clan::StandardColor::antiquewhite
static Color antiquewhite()
Definition
color.h:1570
clan::StandardColor::rosybrown
static Color rosybrown()
Definition
color.h:1689
clan::StandardColor::mediumaquamarine
static Color mediumaquamarine()
Definition
color.h:1656
clan::StandardColor::seashell
static Color seashell()
Definition
color.h:1695
clan::StandardColor::floralwhite
static Color floralwhite()
Definition
color.h:1615
clan::StandardColor::powderblue
static Color powderblue()
Definition
color.h:1686
clan::StandardColor::grey
static Color grey()
Definition
color.h:1623
clan::StandardColor::red
static Color red()
Definition
color.h:1688
clan::StandardColor::violet
static Color violet()
Definition
color.h:1711
clan::StandardColor::navajowhite
static Color navajowhite()
Definition
color.h:1669
clan::StandardColor::darkorchid
static Color darkorchid()
Definition
color.h:1600
clan::StandardColor::indianred
static Color indianred()
Definition
color.h:1628
clan::StandardColor::salmon
static Color salmon()
Definition
color.h:1692
clan::StandardColor::blanchedalmond
static Color blanchedalmond()
Definition
color.h:1577
clan::StandardColor::darkturquoise
static Color darkturquoise()
Definition
color.h:1607
clan::StandardColor::seagreen
static Color seagreen()
Definition
color.h:1694
clan::StandardColor::brown
static Color brown()
Definition
color.h:1580
clan::StandardColor::transparent
static Color transparent()
Definition
color.h:1709
clan::StandardColor::palevioletred
static Color palevioletred()
Definition
color.h:1680
clan::StandardColor::tan
static Color tan()
Definition
color.h:1705
clan::StandardColor::firebrick
static Color firebrick()
Definition
color.h:1614
clan::StandardColor::lightsalmon
static Color lightsalmon()
Definition
color.h:1644
clan::StandardColor::darkslateblue
static Color darkslateblue()
Definition
color.h:1604
clan::StandardColor::slategrey
static Color slategrey()
Definition
color.h:1701
clan::StandardColor::mediumvioletred
static Color mediumvioletred()
Definition
color.h:1664
clan::StandardColor::springgreen
static Color springgreen()
Definition
color.h:1703
clan::StandardColor::mediumpurple
static Color mediumpurple()
Definition
color.h:1659
clan::StandardColor::darkmagenta
static Color darkmagenta()
Definition
color.h:1597
clan::StandardColor::mintcream
static Color mintcream()
Definition
color.h:1666
clan::StandardColor::slateblue
static Color slateblue()
Definition
color.h:1699
clan::StandardColor::darkgrey
static Color darkgrey()
Definition
color.h:1595
clan::StandardColor::yellow
static Color yellow()
Definition
color.h:1715
clan::StandardColor::azure
static Color azure()
Definition
color.h:1573
clan::StandardColor::saddlebrown
static Color saddlebrown()
Definition
color.h:1691
clan::StandardColor::lightgrey
static Color lightgrey()
Definition
color.h:1642
clan::StandardColor::mediumslateblue
static Color mediumslateblue()
Definition
color.h:1661
clan::StandardColor::khaki
static Color khaki()
Definition
color.h:1631
clan::StandardColor::black
static Color black()
Definition
color.h:1576
clan::StandardColor::plum
static Color plum()
Definition
color.h:1685
clan::StandardColor::lightslategrey
static Color lightslategrey()
Definition
color.h:1648
clan::StandardColor::lightcyan
static Color lightcyan()
Definition
color.h:1638
clan::StandardColor::gray40
static Color gray40()
Definition
color.h:1720
clan::StandardColor::midnightblue
static Color midnightblue()
Definition
color.h:1665
clan::StandardColor::lightgreen
static Color lightgreen()
Definition
color.h:1641
clan::StandardColor::blueviolet
static Color blueviolet()
Definition
color.h:1579
clan::StandardColor::palegoldenrod
static Color palegoldenrod()
Definition
color.h:1677
clan::StandardColor::crimson
static Color crimson()
Definition
color.h:1588
clan::StandardColor::darkseagreen
static Color darkseagreen()
Definition
color.h:1603
clan::StandardColor::darkgreen
static Color darkgreen()
Definition
color.h:1594
clan::StandardColor::lemonchiffon
static Color lemonchiffon()
Definition
color.h:1635
clan::StandardColor::lightyellow
static Color lightyellow()
Definition
color.h:1650
clan::StandardColor::sandybrown
static Color sandybrown()
Definition
color.h:1693
clan::StandardColor::bisque
static Color bisque()
Definition
color.h:1575
clan::StandardColor::white
static Color white()
Definition
color.h:1713
clan::StandardColor::orangered
static Color orangered()
Definition
color.h:1675
clan::StandardColor::darkcyan
static Color darkcyan()
Definition
color.h:1591
clan::StandardColor::snow
static Color snow()
Definition
color.h:1702
clan::StandardColor::mediumorchid
static Color mediumorchid()
Definition
color.h:1658
clan::StandardColor::gray90
static Color gray90()
Definition
color.h:1725
clan::StandardColor::dimgrey
static Color dimgrey()
Definition
color.h:1612
clan::StandardColor::lime
static Color lime()
Definition
color.h:1651
clan::StandardColor::ghostwhite
static Color ghostwhite()
Definition
color.h:1619
clan::StandardColor::darkgray
static Color darkgray()
Definition
color.h:1593
clan::StandardColor::darkorange
static Color darkorange()
Definition
color.h:1599
clan::StandardColor::mistyrose
static Color mistyrose()
Definition
color.h:1667
clan::StandardColor::limegreen
static Color limegreen()
Definition
color.h:1652
clan::StandardColor::deeppink
static Color deeppink()
Definition
color.h:1609
clan::StandardColor::gainsboro
static Color gainsboro()
Definition
color.h:1618
clan::StandardColor::peachpuff
static Color peachpuff()
Definition
color.h:1682
clan::StandardColor::silver
static Color silver()
Definition
color.h:1697
clan::StandardColor::paleturquoise
static Color paleturquoise()
Definition
color.h:1679
clan::StandardColor::cornflowerblue
static Color cornflowerblue()
Definition
color.h:1586
clan::StandardColor::blue
static Color blue()
Definition
color.h:1578
clan::StandardColor::slategray
static Color slategray()
Definition
color.h:1700
clan::StandardColor::hotpink
static Color hotpink()
Definition
color.h:1627
clan::StandardColor::gray30
static Color gray30()
Definition
color.h:1719
clan::StandardColor::lightgoldenrodyellow
static Color lightgoldenrodyellow()
Definition
color.h:1639
clan::StandardColor::purple
static Color purple()
Definition
color.h:1687
clan::StandardColor::lightskyblue
static Color lightskyblue()
Definition
color.h:1646
clan::StandardColor::royalblue
static Color royalblue()
Definition
color.h:1690
clan::StandardColor::tomato
static Color tomato()
Definition
color.h:1708
clan::StandardColor::beige
static Color beige()
Definition
color.h:1574
clan::StandardColor::darkred
static Color darkred()
Definition
color.h:1601
clan::StandardColor::burlywood
static Color burlywood()
Definition
color.h:1581
clan::StandardColor::orchid
static Color orchid()
Definition
color.h:1676
clan::StandardColor::moccasin
static Color moccasin()
Definition
color.h:1668
clan::StandardColor::gray50
static Color gray50()
Definition
color.h:1721
clan::StandardColor::fuchsia
static Color fuchsia()
Definition
color.h:1617
clan::StandardColor::turquoise
static Color turquoise()
Definition
color.h:1710
clan::StandardColor::mediumturquoise
static Color mediumturquoise()
Definition
color.h:1663
clan::StandardColor::skyblue
static Color skyblue()
Definition
color.h:1698
clan::StandardColor::gray70
static Color gray70()
Definition
color.h:1723
clan::StandardColor::olivedrab
static Color olivedrab()
Definition
color.h:1673
clan::StandardColor::oldlace
static Color oldlace()
Definition
color.h:1671
clan::StandardColor::gray
static Color gray()
Definition
color.h:1622
clan::StandardColor::gray60
static Color gray60()
Definition
color.h:1722
clan::StandardColor::dodgerblue
static Color dodgerblue()
Definition
color.h:1613
clan::StandardColor::olive
static Color olive()
Definition
color.h:1672
clan::StandardColor::lawngreen
static Color lawngreen()
Definition
color.h:1634
clan::StandardColor::cyan
static Color cyan()
Definition
color.h:1589
clan::StandardColor::forestgreen
static Color forestgreen()
Definition
color.h:1616
clan::StandardColor::aquamarine
static Color aquamarine()
Definition
color.h:1572
clan::StandardColor::mediumseagreen
static Color mediumseagreen()
Definition
color.h:1660
clan::StandardColor::orange
static Color orange()
Definition
color.h:1674
clan::StandardColor::palegreen
static Color palegreen()
Definition
color.h:1678
clan::StandardColor::lightcoral
static Color lightcoral()
Definition
color.h:1637
clan::StandardColor::linen
static Color linen()
Definition
color.h:1653
clan::StandardColor::aliceblue
static Color aliceblue()
Definition
color.h:1569
clan::StandardColor::green
static Color green()
Definition
color.h:1624
clan::StandardColorf
Standard X11/HTML named colors (for float)
Definition
color.h:1730
clan::StandardColorf::beige
static Colorf beige()
Definition
color.h:1745
clan::StandardColorf::darkorchid
static Colorf darkorchid()
Definition
color.h:1771
clan::StandardColorf::gray60
static Colorf gray60()
Definition
color.h:1893
clan::StandardColorf::lightcyan
static Colorf lightcyan()
Definition
color.h:1809
clan::StandardColorf::darkslategray
static Colorf darkslategray()
Definition
color.h:1776
clan::StandardColorf::limegreen
static Colorf limegreen()
Definition
color.h:1823
clan::StandardColorf::orangered
static Colorf orangered()
Definition
color.h:1846
clan::StandardColorf::olive
static Colorf olive()
Definition
color.h:1843
clan::StandardColorf::darkseagreen
static Colorf darkseagreen()
Definition
color.h:1774
clan::StandardColorf::gray50
static Colorf gray50()
Definition
color.h:1892
clan::StandardColorf::cyan
static Colorf cyan()
Definition
color.h:1760
clan::StandardColorf::mediumpurple
static Colorf mediumpurple()
Definition
color.h:1830
clan::StandardColorf::teal
static Colorf teal()
Definition
color.h:1877
clan::StandardColorf::deeppink
static Colorf deeppink()
Definition
color.h:1780
clan::StandardColorf::cadetblue
static Colorf cadetblue()
Definition
color.h:1753
clan::StandardColorf::yellowgreen
static Colorf yellowgreen()
Definition
color.h:1887
clan::StandardColorf::gray40
static Colorf gray40()
Definition
color.h:1891
clan::StandardColorf::chartreuse
static Colorf chartreuse()
Definition
color.h:1754
clan::StandardColorf::floralwhite
static Colorf floralwhite()
Definition
color.h:1786
clan::StandardColorf::coral
static Colorf coral()
Definition
color.h:1756
clan::StandardColorf::firebrick
static Colorf firebrick()
Definition
color.h:1785
clan::StandardColorf::peachpuff
static Colorf peachpuff()
Definition
color.h:1853
clan::StandardColorf::lightgoldenrodyellow
static Colorf lightgoldenrodyellow()
Definition
color.h:1810
clan::StandardColorf::magenta
static Colorf magenta()
Definition
color.h:1825
clan::StandardColorf::fuchsia
static Colorf fuchsia()
Definition
color.h:1788
clan::StandardColorf::pink
static Colorf pink()
Definition
color.h:1855
clan::StandardColorf::ghostwhite
static Colorf ghostwhite()
Definition
color.h:1790
clan::StandardColorf::mediumvioletred
static Colorf mediumvioletred()
Definition
color.h:1835
clan::StandardColorf::yellow
static Colorf yellow()
Definition
color.h:1886
clan::StandardColorf::gold
static Colorf gold()
Definition
color.h:1791
clan::StandardColorf::bisque
static Colorf bisque()
Definition
color.h:1746
clan::StandardColorf::darkmagenta
static Colorf darkmagenta()
Definition
color.h:1768
clan::StandardColorf::lightslategray
static Colorf lightslategray()
Definition
color.h:1818
clan::StandardColorf::crimson
static Colorf crimson()
Definition
color.h:1759
clan::StandardColorf::lavender
static Colorf lavender()
Definition
color.h:1803
clan::StandardColorf::honeydew
static Colorf honeydew()
Definition
color.h:1797
clan::StandardColorf::lime
static Colorf lime()
Definition
color.h:1822
clan::StandardColorf::powderblue
static Colorf powderblue()
Definition
color.h:1857
clan::StandardColorf::black
static Colorf black()
Definition
color.h:1747
clan::StandardColorf::springgreen
static Colorf springgreen()
Definition
color.h:1874
clan::StandardColorf::darkcyan
static Colorf darkcyan()
Definition
color.h:1762
clan::StandardColorf::plum
static Colorf plum()
Definition
color.h:1856
clan::StandardColorf::dodgerblue
static Colorf dodgerblue()
Definition
color.h:1784
clan::StandardColorf::dimgray
static Colorf dimgray()
Definition
color.h:1782
clan::StandardColorf::goldenrod
static Colorf goldenrod()
Definition
color.h:1792
clan::StandardColorf::darkorange
static Colorf darkorange()
Definition
color.h:1770
clan::StandardColorf::mediumaquamarine
static Colorf mediumaquamarine()
Definition
color.h:1827
clan::StandardColorf::deepskyblue
static Colorf deepskyblue()
Definition
color.h:1781
clan::StandardColorf::lightcoral
static Colorf lightcoral()
Definition
color.h:1808
clan::StandardColorf::purple
static Colorf purple()
Definition
color.h:1858
clan::StandardColorf::lavenderblush
static Colorf lavenderblush()
Definition
color.h:1804
clan::StandardColorf::steelblue
static Colorf steelblue()
Definition
color.h:1875
clan::StandardColorf::lightgrey
static Colorf lightgrey()
Definition
color.h:1813
clan::StandardColorf::greenyellow
static Colorf greenyellow()
Definition
color.h:1796
clan::StandardColorf::whitesmoke
static Colorf whitesmoke()
Definition
color.h:1885
clan::StandardColorf::lightgray
static Colorf lightgray()
Definition
color.h:1811
clan::StandardColorf::salmon
static Colorf salmon()
Definition
color.h:1863
clan::StandardColorf::gray30
static Colorf gray30()
Definition
color.h:1890
clan::StandardColorf::skyblue
static Colorf skyblue()
Definition
color.h:1869
clan::StandardColorf::lawngreen
static Colorf lawngreen()
Definition
color.h:1805
clan::StandardColorf::transparent
static Colorf transparent()
Definition
color.h:1880
clan::StandardColorf::lightseagreen
static Colorf lightseagreen()
Definition
color.h:1816
clan::StandardColorf::slategray
static Colorf slategray()
Definition
color.h:1871
clan::StandardColorf::darkgrey
static Colorf darkgrey()
Definition
color.h:1766
clan::StandardColorf::lightpink
static Colorf lightpink()
Definition
color.h:1814
clan::StandardColorf::papayawhip
static Colorf papayawhip()
Definition
color.h:1852
clan::StandardColorf::snow
static Colorf snow()
Definition
color.h:1873
clan::StandardColorf::red
static Colorf red()
Definition
color.h:1859
clan::StandardColorf::chocolate
static Colorf chocolate()
Definition
color.h:1755
clan::StandardColorf::darkblue
static Colorf darkblue()
Definition
color.h:1761
clan::StandardColorf::orange
static Colorf orange()
Definition
color.h:1845
clan::StandardColorf::sienna
static Colorf sienna()
Definition
color.h:1867
clan::StandardColorf::mediumslateblue
static Colorf mediumslateblue()
Definition
color.h:1832
clan::StandardColorf::lightslategrey
static Colorf lightslategrey()
Definition
color.h:1819
clan::StandardColorf::brown
static Colorf brown()
Definition
color.h:1751
clan::StandardColorf::gray
static Colorf gray()
Definition
color.h:1793
clan::StandardColorf::moccasin
static Colorf moccasin()
Definition
color.h:1839
clan::StandardColorf::mediumspringgreen
static Colorf mediumspringgreen()
Definition
color.h:1833
clan::StandardColorf::blanchedalmond
static Colorf blanchedalmond()
Definition
color.h:1748
clan::StandardColorf::palegoldenrod
static Colorf palegoldenrod()
Definition
color.h:1848
clan::StandardColorf::indigo
static Colorf indigo()
Definition
color.h:1800
clan::StandardColorf::lightskyblue
static Colorf lightskyblue()
Definition
color.h:1817
clan::StandardColorf::blueviolet
static Colorf blueviolet()
Definition
color.h:1750
clan::StandardColorf::aquamarine
static Colorf aquamarine()
Definition
color.h:1743
clan::StandardColorf::grey
static Colorf grey()
Definition
color.h:1794
clan::StandardColorf::lightgreen
static Colorf lightgreen()
Definition
color.h:1812
clan::StandardColorf::darkviolet
static Colorf darkviolet()
Definition
color.h:1779
clan::StandardColorf::lemonchiffon
static Colorf lemonchiffon()
Definition
color.h:1806
clan::StandardColorf::seagreen
static Colorf seagreen()
Definition
color.h:1865
clan::StandardColorf::lightsteelblue
static Colorf lightsteelblue()
Definition
color.h:1820
clan::StandardColorf::saddlebrown
static Colorf saddlebrown()
Definition
color.h:1862
clan::StandardColorf::burlywood
static Colorf burlywood()
Definition
color.h:1752
clan::StandardColorf::sandybrown
static Colorf sandybrown()
Definition
color.h:1864
clan::StandardColorf::ivory
static Colorf ivory()
Definition
color.h:1801
clan::StandardColorf::lightblue
static Colorf lightblue()
Definition
color.h:1807
clan::StandardColorf::palevioletred
static Colorf palevioletred()
Definition
color.h:1851
clan::StandardColorf::hotpink
static Colorf hotpink()
Definition
color.h:1798
clan::StandardColorf::white
static Colorf white()
Definition
color.h:1884
clan::StandardColorf::darkslateblue
static Colorf darkslateblue()
Definition
color.h:1775
clan::StandardColorf::tomato
static Colorf tomato()
Definition
color.h:1879
clan::StandardColorf::darkred
static Colorf darkred()
Definition
color.h:1772
clan::StandardColorf::wheat
static Colorf wheat()
Definition
color.h:1883
clan::StandardColorf::darkgreen
static Colorf darkgreen()
Definition
color.h:1765
clan::StandardColorf::green
static Colorf green()
Definition
color.h:1795
clan::StandardColorf::gray70
static Colorf gray70()
Definition
color.h:1894
clan::StandardColorf::darkslategrey
static Colorf darkslategrey()
Definition
color.h:1777
clan::StandardColorf::dimgrey
static Colorf dimgrey()
Definition
color.h:1783
clan::StandardColorf::navy
static Colorf navy()
Definition
color.h:1841
clan::StandardColorf::gray90
static Colorf gray90()
Definition
color.h:1896
clan::StandardColorf::parse
static bool parse(const std::string &name, Colorf &out_color)
Find and returns the static color matching a string.
clan::StandardColorf::darkkhaki
static Colorf darkkhaki()
Definition
color.h:1767
clan::StandardColorf::gray10
static Colorf gray10()
Definition
color.h:1888
clan::StandardColorf::seashell
static Colorf seashell()
Definition
color.h:1866
clan::StandardColorf::slateblue
static Colorf slateblue()
Definition
color.h:1870
clan::StandardColorf::darkgoldenrod
static Colorf darkgoldenrod()
Definition
color.h:1763
clan::StandardColorf::slategrey
static Colorf slategrey()
Definition
color.h:1872
clan::StandardColorf::linen
static Colorf linen()
Definition
color.h:1824
clan::StandardColorf::silver
static Colorf silver()
Definition
color.h:1868
clan::StandardColorf::navajowhite
static Colorf navajowhite()
Definition
color.h:1840
clan::StandardColorf::midnightblue
static Colorf midnightblue()
Definition
color.h:1836
clan::StandardColorf::mistyrose
static Colorf mistyrose()
Definition
color.h:1838
clan::StandardColorf::forestgreen
static Colorf forestgreen()
Definition
color.h:1787
clan::StandardColorf::azure
static Colorf azure()
Definition
color.h:1744
clan::StandardColorf::royalblue
static Colorf royalblue()
Definition
color.h:1861
clan::StandardColorf::mintcream
static Colorf mintcream()
Definition
color.h:1837
clan::StandardColorf::aliceblue
static Colorf aliceblue()
Definition
color.h:1740
clan::StandardColorf::cornflowerblue
static Colorf cornflowerblue()
Definition
color.h:1757
clan::StandardColorf::thistle
static Colorf thistle()
Definition
color.h:1878
clan::StandardColorf::mediumorchid
static Colorf mediumorchid()
Definition
color.h:1829
clan::StandardColorf::olivedrab
static Colorf olivedrab()
Definition
color.h:1844
clan::StandardColorf::maroon
static Colorf maroon()
Definition
color.h:1826
clan::StandardColorf::blue
static Colorf blue()
Definition
color.h:1749
clan::StandardColorf::paleturquoise
static Colorf paleturquoise()
Definition
color.h:1850
clan::StandardColorf::mediumblue
static Colorf mediumblue()
Definition
color.h:1828
clan::StandardColorf::gray20
static Colorf gray20()
Definition
color.h:1889
clan::StandardColorf::darkgray
static Colorf darkgray()
Definition
color.h:1764
clan::StandardColorf::turquoise
static Colorf turquoise()
Definition
color.h:1881
clan::StandardColorf::gray80
static Colorf gray80()
Definition
color.h:1895
clan::StandardColorf::orchid
static Colorf orchid()
Definition
color.h:1847
clan::StandardColorf::mediumseagreen
static Colorf mediumseagreen()
Definition
color.h:1831
clan::StandardColorf::mediumturquoise
static Colorf mediumturquoise()
Definition
color.h:1834
clan::StandardColorf::tan
static Colorf tan()
Definition
color.h:1876
clan::StandardColorf::darkolivegreen
static Colorf darkolivegreen()
Definition
color.h:1769
clan::StandardColorf::oldlace
static Colorf oldlace()
Definition
color.h:1842
clan::StandardColorf::cornsilk
static Colorf cornsilk()
Definition
color.h:1758
clan::StandardColorf::darkturquoise
static Colorf darkturquoise()
Definition
color.h:1778
clan::StandardColorf::lightsalmon
static Colorf lightsalmon()
Definition
color.h:1815
clan::StandardColorf::violet
static Colorf violet()
Definition
color.h:1882
clan::StandardColorf::gainsboro
static Colorf gainsboro()
Definition
color.h:1789
clan::StandardColorf::antiquewhite
static Colorf antiquewhite()
Definition
color.h:1741
clan::StandardColorf::lightyellow
static Colorf lightyellow()
Definition
color.h:1821
clan::StandardColorf::indianred
static Colorf indianred()
Definition
color.h:1799
clan::StandardColorf::peru
static Colorf peru()
Definition
color.h:1854
clan::StandardColorf::khaki
static Colorf khaki()
Definition
color.h:1802
clan::StandardColorf::darksalmon
static Colorf darksalmon()
Definition
color.h:1773
clan::StandardColorf::rosybrown
static Colorf rosybrown()
Definition
color.h:1860
clan::StandardColorf::aqua
static Colorf aqua()
Definition
color.h:1742
clan::StandardColorf::palegreen
static Colorf palegreen()
Definition
color.h:1849
clan::Vec4< unsigned char >::a
unsigned char a
Definition
vec4.h:82
clan::Vec4< unsigned char >::r
unsigned char r
Definition
vec4.h:79
clan::Vec4< unsigned char >::b
unsigned char b
Definition
vec4.h:81
clan::Vec4< unsigned char >::g
unsigned char g
Definition
vec4.h:80
clan::Vec4ub
Vec4< unsigned char > Vec4ub
Definition
vec4.h:393
clan::Vec4f
Vec4< float > Vec4f
Definition
vec4.h:399
clan
Definition
clanapp.h:36
clan::StyleValueType::color
@ color
value is an url
Definition
style_value_type.h:43
clan::Key::c
@ c
Definition
keys.h:83