neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
color.hpp
Go to the documentation of this file.
1// color.hpp
2/*
3 neogfx C++ App/Game Engine
4 Copyright (c) 2015, 2020 Leigh Johnston. All Rights Reserved.
5
6 This program is free software: you can redistribute it and / or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
18*/
19
20#pragma once
21
22#include <neogfx/neogfx.hpp>
23#include <type_traits>
30
31namespace neogfx
32{
35
36 inline scalar to_sRGB(color_space srcSpace, scalar srcValue, scalar scale)
37 {
38 switch (srcSpace)
39 {
41 default:
42 return srcValue;
44 return linear_to_sRGB(srcValue, scale);
45 }
46 }
47
48 inline scalar from_sRGB(color_space srcSpace, scalar srcValue, scalar scale)
49 {
50 switch (srcSpace)
51 {
53 default:
54 return srcValue;
56 return sRGB_to_linear(srcValue, scale);
57 }
58 }
59
60 template <typename Color, typename Derived>
62 {
63 typedef Derived return_type;
64 };
65
66 template <typename Color>
68 {
70 };
71
72 template <color_space ColorSpace, typename BaseComponent, typename ViewComponent = BaseComponent, std::size_t ColorComponentCount = 3, typename Derived = void>
73 class basic_color :
74 public basic_vector<BaseComponent, ColorComponentCount + 1>
75 {
78 typedef Derived derived_type;
79 // types
80 public:
81 typedef base_type abstract_type; // todo
82 typedef BaseComponent base_component;
83 typedef ViewComponent view_component;
85 // constants
86 public:
87 static constexpr color_space color_space = ColorSpace;
88 static constexpr std::size_t component_count = ColorComponentCount + 1;
89 static constexpr std::size_t alpha_component_index = component_count - 1;
90 // helper
91 public:
92 template <typename To, typename From>
93 static To convert(From aComponent)
94 {
95 if constexpr (std::is_same_v<From, To>)
96 return aComponent;
97 else if constexpr (std::is_integral_v<To> && std::is_floating_point_v<From>)
98 return static_cast<To>(aComponent * std::numeric_limits<To>::max());
99 else if constexpr (std::is_floating_point_v<To> && std::is_integral_v<From>)
100 {
101 if constexpr (!std::is_integral_v<view_component>)
102 return static_cast<To>(aComponent) / std::numeric_limits<From>::max();
103 else
104 return static_cast<To>(aComponent) / std::numeric_limits<view_component>::max();
105 }
106 else
107 return static_cast<To>(aComponent);
108 }
109 // construction
110 public:
111 using base_type::base_type;
113 base_type{ aNoAlpha }
114 {
115 set_alpha(1.0);
116 }
117 basic_color(const self_type& aOther) :
118 base_type{ aOther }
119 {
120 }
121 // assignment
122 public:
124 {
125 base_type::operator=(aOther);
126 return *this;
127 }
128 // operations
129 public:
131 {
132 return convert<view_component>(aComponent);
133 }
135 {
136 return base_to_view(base_type::operator[](alpha_component_index));
137 }
138 template <typename T>
139 T alpha() const
140 {
141 return convert<T>(base_type::operator[](alpha_component_index));
142 }
144 {
145 base_type::operator[](alpha_component_index) = convert<base_component>(aAlpha);
146 return static_cast<return_type&>(*this);
147 }
148 template <typename T>
150 {
151 base_type::operator[](alpha_component_index) = convert<base_component>(aAlpha);
152 return static_cast<return_type&>(*this);
153 }
155 {
156 return return_type{ to_abstract(*this) }.set_alpha(aAlpha);
157 }
158 template <typename T>
159 return_type with_alpha(T aAlpha) const
160 {
161 return return_type{ to_abstract(*this) }.set_alpha(aAlpha);
162 }
164 {
165 return return_type{ to_abstract(*this) }.with_alpha(convert<scalar>(alpha()) * convert<scalar>(aAlpha));
166 }
167 template <typename T>
169 {
170 return return_type{ to_abstract(*this) }.with_alpha(convert<scalar>(alpha()) * convert<scalar>(aAlpha));
171 }
172 };
173
174 template <color_space ColorSpace, typename BaseComponent, typename ViewComponent = BaseComponent, typename Derived = void>
175 class basic_rgb_color : public basic_color<ColorSpace, BaseComponent, ViewComponent, 3, Derived>
176 {
179 public:
184 typedef uint32_t argb;
185 protected:
186 static const argb AlphaShift = 24;
187 static const argb RedShift = 16;
188 static const argb GreenShift = 8;
189 static const argb BlueShift = 0;
190 public:
193 public:
195 public:
198 basic_rgb_color(const self_type& aOther) :
199 base_type{ aOther } {}
200 explicit basic_rgb_color(const vec3& aBaseNoAlpha) :
201 base_type{ aBaseNoAlpha } {}
202 explicit basic_rgb_color(const vec4& aBase) :
203 base_type{ aBase } {}
206 basic_rgb_color(int32_t aRed, int32_t aGreen, int32_t aBlue, int32_t aAlpha = 0xFF) :
207 basic_rgb_color{ static_cast<view_component>(aRed), static_cast<view_component>(aGreen), static_cast<view_component>(aBlue), static_cast<view_component>(aAlpha) } {}
208 basic_rgb_color(uint32_t aRed, uint32_t aGreen, uint32_t aBlue, uint32_t aAlpha = 0xFF) :
209 basic_rgb_color{ static_cast<view_component>(aRed), static_cast<view_component>(aGreen), static_cast<view_component>(aBlue), static_cast<view_component>(aAlpha) } {}
210 template <typename T>
211 basic_rgb_color(T aRed, T aGreen, T aBlue, T aAlpha = 1.0, std::enable_if_t<std::is_scalar_v<T> && !std::is_same_v<view_component, T>, sfinae> = {}) :
213 explicit basic_rgb_color(argb aValue) :
214 base_type{ from_argb(aValue) } {}
215 // assignment
216 public:
218 {
219 base_type::operator=(aOther);
220 return *this;
221 }
223 {
224 base_type::operator=(aOther);
225 return *this;
226 }
227 // operations
228 public:
229 static self_type from_argb(argb aValue)
230 {
231 self_type result;
232 result.set_red((aValue >> RedShift) & 0xFF);
233 result.set_green((aValue >> GreenShift) & 0xFF);
234 result.set_blue((aValue >> BlueShift) & 0xFF);
235 result.set_alpha((aValue >> AlphaShift) & 0xFF);
236 return result;
237 }
238 // modification
239 public:
246 {
247 return base_to_view(base_type::operator[](0));
248 }
250 {
251 return base_to_view(base_type::operator[](1));
252 }
254 {
255 return base_to_view(base_type::operator[](2));
256 }
257 template <typename T>
258 T red() const
259 {
260 return convert<T>(base_type::operator[](0));
261 }
262 template <typename T>
263 T green() const
264 {
265 return convert<T>(base_type::operator[](1));
266 }
267 template <typename T>
268 T blue() const
269 {
270 return convert<T>(base_type::operator[](2));
271 }
273 {
274 base_type::operator[](0) = convert<base_component>(aRed);
275 return static_cast<return_type&>(*this);
276 }
278 {
279 base_type::operator[](1) = convert<base_component>(aGreen);
280 return static_cast<return_type&>(*this);
281 }
283 {
284 base_type::operator[](2) = convert<base_component>(aBlue);
285 return static_cast<return_type&>(*this);
286 }
287 template <typename T>
289 {
290 base_type::operator[](0) = convert<base_component>(aRed);
291 return static_cast<return_type&>(*this);
292 }
293 template <typename T>
295 {
296 base_type::operator[](1) = convert<base_component>(aGreen);
297 return static_cast<return_type&>(*this);
298 }
299 template <typename T>
301 {
302 base_type::operator[](2) = convert<base_component>(aBlue);
303 return static_cast<return_type&>(*this);
304 }
306 {
307 return return_type{ *this }.set_red(aRed);
308 }
310 {
311 return return_type{ *this }.set_green(aGreen);
312 }
314 {
315 return return_type{ *this }.set_blue(aBlue);
316 }
317 template <typename T>
318 return_type with_red(T aRed) const
319 {
320 return return_type{ *this }.set_red(aRed);
321 }
322 template <typename T>
323 return_type with_green(T aGreen) const
324 {
325 return return_type{ *this }.set_green(aGreen);
326 }
327 template <typename T>
328 return_type with_blue(T aBlue) const
329 {
330 return return_type{ *this }.set_blue(aBlue);
331 }
332 // operations
333 public:
334 static return_type from_hsl(scalar aHue, scalar aSaturation, scalar aLightness, scalar aAlpha = 1.0);
335 static return_type from_hsv(scalar aHue, scalar aSaturation, scalar aValue, scalar aAlpha = 1.0);
336 argb as_argb() const;
337 hsl_color to_hsl() const;
338 hsv_color to_hsv() const;
339 scalar intensity() const;
340 bool similar_intensity(const self_type& aOther, scalar aThreshold = 0.5) const;
341 return_type mid(const self_type& aOther) const;
342 return_type mix(const self_type& aOther, scalar aValue) const;
343 bool light(scalar aThreshold = 0.50) const;
344 bool dark(scalar aThreshold = 0.50) const;
347 return_type lighter(view_component aDelta) const;
348 return_type darker(view_component aDelta) const;
351 return_type shaded(view_component aDelta) const;
352 return_type unshaded(view_component aDelta) const;
353 return_type monochrome() const;
354 return_type same_lightness_as(const self_type& aOther) const;
355 return_type with_lightness(scalar aLightness) const;
356 return_type inverse() const;
359 return_type operator~() const;
360 // comparison
361 public:
362 bool operator==(const self_type& aOther) const;
363 bool operator<(const self_type& aOther) const;
364 auto operator<=>(const self_type& aOther) const = default;
365 // string
366 public:
367 std::string to_string() const;
368 std::string to_hex_string() const;
369 };
370
372
373 class sRGB_color : public basic_rgb_color<color_space::sRGB, scalar, uint8_t, sRGB_color>
374 {
376 // types
377 public:
379 // constants
380 public:
381 static const sRGB_color AliceBlue;
387 static const sRGB_color Aquamarine;
392 static const sRGB_color Azure;
393 static const sRGB_color Azure1;
394 static const sRGB_color Azure2;
395 static const sRGB_color Azure3;
396 static const sRGB_color Azure4;
397 static const sRGB_color Beige;
398 static const sRGB_color Bisque;
399 static const sRGB_color Bisque1;
400 static const sRGB_color Bisque2;
401 static const sRGB_color Bisque3;
402 static const sRGB_color Bisque4;
403 static const sRGB_color Black;
405 static const sRGB_color Blue;
406 static const sRGB_color Blue1;
407 static const sRGB_color Blue2;
408 static const sRGB_color Blue3;
409 static const sRGB_color Blue4;
410 static const sRGB_color BlueViolet;
411 static const sRGB_color Brown;
412 static const sRGB_color Brown1;
413 static const sRGB_color Brown2;
414 static const sRGB_color Brown3;
415 static const sRGB_color Brown4;
416 static const sRGB_color Burlywood;
417 static const sRGB_color Burlywood1;
418 static const sRGB_color Burlywood2;
419 static const sRGB_color Burlywood3;
420 static const sRGB_color Burlywood4;
421 static const sRGB_color CadetBlue;
422 static const sRGB_color CadetBlue1;
423 static const sRGB_color CadetBlue2;
424 static const sRGB_color CadetBlue3;
425 static const sRGB_color CadetBlue4;
426 static const sRGB_color Chartreuse;
431 static const sRGB_color Chocolate;
432 static const sRGB_color Chocolate1;
433 static const sRGB_color Chocolate2;
434 static const sRGB_color Chocolate3;
435 static const sRGB_color Chocolate4;
436 static const sRGB_color Coral;
437 static const sRGB_color Coral1;
438 static const sRGB_color Coral2;
439 static const sRGB_color Coral3;
440 static const sRGB_color Coral4;
442 static const sRGB_color Cornsilk;
443 static const sRGB_color Cornsilk1;
444 static const sRGB_color Cornsilk2;
445 static const sRGB_color Cornsilk3;
446 static const sRGB_color Cornsilk4;
447 static const sRGB_color Cyan;
448 static const sRGB_color Cyan1;
449 static const sRGB_color Cyan2;
450 static const sRGB_color Cyan3;
451 static const sRGB_color Cyan4;
452 static const sRGB_color DarkBlue;
453 static const sRGB_color DarkCyan;
459 static const sRGB_color DarkGray;
460 static const sRGB_color DarkGreen;
461 static const sRGB_color DarkGrey;
462 static const sRGB_color DarkKhaki;
469 static const sRGB_color DarkOrange;
474 static const sRGB_color DarkOrchid;
479 static const sRGB_color DarkRed;
480 static const sRGB_color DarkSalmon;
494 static const sRGB_color DarkViolet;
495 static const sRGB_color DebianRed;
496 static const sRGB_color DeepPink;
497 static const sRGB_color DeepPink1;
498 static const sRGB_color DeepPink2;
499 static const sRGB_color DeepPink3;
500 static const sRGB_color DeepPink4;
506 static const sRGB_color DimGray;
507 static const sRGB_color DimGrey;
508 static const sRGB_color DodgerBlue;
513 static const sRGB_color Firebrick;
514 static const sRGB_color Firebrick1;
515 static const sRGB_color Firebrick2;
516 static const sRGB_color Firebrick3;
517 static const sRGB_color Firebrick4;
520 static const sRGB_color Gainsboro;
521 static const sRGB_color GhostWhite;
522 static const sRGB_color Gold;
523 static const sRGB_color Gold1;
524 static const sRGB_color Gold2;
525 static const sRGB_color Gold3;
526 static const sRGB_color Gold4;
527 static const sRGB_color Goldenrod;
528 static const sRGB_color Goldenrod1;
529 static const sRGB_color Goldenrod2;
530 static const sRGB_color Goldenrod3;
531 static const sRGB_color Goldenrod4;
532 static const sRGB_color Gray;
533 static const sRGB_color Gray0;
534 static const sRGB_color Gray1;
535 static const sRGB_color Gray10;
536 static const sRGB_color Gray100;
537 static const sRGB_color Gray11;
538 static const sRGB_color Gray12;
539 static const sRGB_color Gray13;
540 static const sRGB_color Gray14;
541 static const sRGB_color Gray15;
542 static const sRGB_color Gray16;
543 static const sRGB_color Gray17;
544 static const sRGB_color Gray18;
545 static const sRGB_color Gray19;
546 static const sRGB_color Gray2;
547 static const sRGB_color Gray20;
548 static const sRGB_color Gray21;
549 static const sRGB_color Gray22;
550 static const sRGB_color Gray23;
551 static const sRGB_color Gray24;
552 static const sRGB_color Gray25;
553 static const sRGB_color Gray26;
554 static const sRGB_color Gray27;
555 static const sRGB_color Gray28;
556 static const sRGB_color Gray29;
557 static const sRGB_color Gray3;
558 static const sRGB_color Gray30;
559 static const sRGB_color Gray31;
560 static const sRGB_color Gray32;
561 static const sRGB_color Gray33;
562 static const sRGB_color Gray34;
563 static const sRGB_color Gray35;
564 static const sRGB_color Gray36;
565 static const sRGB_color Gray37;
566 static const sRGB_color Gray38;
567 static const sRGB_color Gray39;
568 static const sRGB_color Gray4;
569 static const sRGB_color Gray40;
570 static const sRGB_color Gray41;
571 static const sRGB_color Gray42;
572 static const sRGB_color Gray43;
573 static const sRGB_color Gray44;
574 static const sRGB_color Gray45;
575 static const sRGB_color Gray46;
576 static const sRGB_color Gray47;
577 static const sRGB_color Gray48;
578 static const sRGB_color Gray49;
579 static const sRGB_color Gray5;
580 static const sRGB_color Gray50;
581 static const sRGB_color Gray51;
582 static const sRGB_color Gray52;
583 static const sRGB_color Gray53;
584 static const sRGB_color Gray54;
585 static const sRGB_color Gray55;
586 static const sRGB_color Gray56;
587 static const sRGB_color Gray57;
588 static const sRGB_color Gray58;
589 static const sRGB_color Gray59;
590 static const sRGB_color Gray6;
591 static const sRGB_color Gray60;
592 static const sRGB_color Gray61;
593 static const sRGB_color Gray62;
594 static const sRGB_color Gray63;
595 static const sRGB_color Gray64;
596 static const sRGB_color Gray65;
597 static const sRGB_color Gray66;
598 static const sRGB_color Gray67;
599 static const sRGB_color Gray68;
600 static const sRGB_color Gray69;
601 static const sRGB_color Gray7;
602 static const sRGB_color Gray70;
603 static const sRGB_color Gray71;
604 static const sRGB_color Gray72;
605 static const sRGB_color Gray73;
606 static const sRGB_color Gray74;
607 static const sRGB_color Gray75;
608 static const sRGB_color Gray76;
609 static const sRGB_color Gray77;
610 static const sRGB_color Gray78;
611 static const sRGB_color Gray79;
612 static const sRGB_color Gray8;
613 static const sRGB_color Gray80;
614 static const sRGB_color Gray81;
615 static const sRGB_color Gray82;
616 static const sRGB_color Gray83;
617 static const sRGB_color Gray84;
618 static const sRGB_color Gray85;
619 static const sRGB_color Gray86;
620 static const sRGB_color Gray87;
621 static const sRGB_color Gray88;
622 static const sRGB_color Gray89;
623 static const sRGB_color Gray9;
624 static const sRGB_color Gray90;
625 static const sRGB_color Gray91;
626 static const sRGB_color Gray92;
627 static const sRGB_color Gray93;
628 static const sRGB_color Gray94;
629 static const sRGB_color Gray95;
630 static const sRGB_color Gray96;
631 static const sRGB_color Gray97;
632 static const sRGB_color Gray98;
633 static const sRGB_color Gray99;
634 static const sRGB_color Green;
635 static const sRGB_color Green1;
636 static const sRGB_color Green2;
637 static const sRGB_color Green3;
638 static const sRGB_color Green4;
640 static const sRGB_color Grey;
641 static const sRGB_color Grey0;
642 static const sRGB_color Grey1;
643 static const sRGB_color Grey10;
644 static const sRGB_color Grey100;
645 static const sRGB_color Grey11;
646 static const sRGB_color Grey12;
647 static const sRGB_color Grey13;
648 static const sRGB_color Grey14;
649 static const sRGB_color Grey15;
650 static const sRGB_color Grey16;
651 static const sRGB_color Grey17;
652 static const sRGB_color Grey18;
653 static const sRGB_color Grey19;
654 static const sRGB_color Grey2;
655 static const sRGB_color Grey20;
656 static const sRGB_color Grey21;
657 static const sRGB_color Grey22;
658 static const sRGB_color Grey23;
659 static const sRGB_color Grey24;
660 static const sRGB_color Grey25;
661 static const sRGB_color Grey26;
662 static const sRGB_color Grey27;
663 static const sRGB_color Grey28;
664 static const sRGB_color Grey29;
665 static const sRGB_color Grey3;
666 static const sRGB_color Grey30;
667 static const sRGB_color Grey31;
668 static const sRGB_color Grey32;
669 static const sRGB_color Grey33;
670 static const sRGB_color Grey34;
671 static const sRGB_color Grey35;
672 static const sRGB_color Grey36;
673 static const sRGB_color Grey37;
674 static const sRGB_color Grey38;
675 static const sRGB_color Grey39;
676 static const sRGB_color Grey4;
677 static const sRGB_color Grey40;
678 static const sRGB_color Grey41;
679 static const sRGB_color Grey42;
680 static const sRGB_color Grey43;
681 static const sRGB_color Grey44;
682 static const sRGB_color Grey45;
683 static const sRGB_color Grey46;
684 static const sRGB_color Grey47;
685 static const sRGB_color Grey48;
686 static const sRGB_color Grey49;
687 static const sRGB_color Grey5;
688 static const sRGB_color Grey50;
689 static const sRGB_color Grey51;
690 static const sRGB_color Grey52;
691 static const sRGB_color Grey53;
692 static const sRGB_color Grey54;
693 static const sRGB_color Grey55;
694 static const sRGB_color Grey56;
695 static const sRGB_color Grey57;
696 static const sRGB_color Grey58;
697 static const sRGB_color Grey59;
698 static const sRGB_color Grey6;
699 static const sRGB_color Grey60;
700 static const sRGB_color Grey61;
701 static const sRGB_color Grey62;
702 static const sRGB_color Grey63;
703 static const sRGB_color Grey64;
704 static const sRGB_color Grey65;
705 static const sRGB_color Grey66;
706 static const sRGB_color Grey67;
707 static const sRGB_color Grey68;
708 static const sRGB_color Grey69;
709 static const sRGB_color Grey7;
710 static const sRGB_color Grey70;
711 static const sRGB_color Grey71;
712 static const sRGB_color Grey72;
713 static const sRGB_color Grey73;
714 static const sRGB_color Grey74;
715 static const sRGB_color Grey75;
716 static const sRGB_color Grey76;
717 static const sRGB_color Grey77;
718 static const sRGB_color Grey78;
719 static const sRGB_color Grey79;
720 static const sRGB_color Grey8;
721 static const sRGB_color Grey80;
722 static const sRGB_color Grey81;
723 static const sRGB_color Grey82;
724 static const sRGB_color Grey83;
725 static const sRGB_color Grey84;
726 static const sRGB_color Grey85;
727 static const sRGB_color Grey86;
728 static const sRGB_color Grey87;
729 static const sRGB_color Grey88;
730 static const sRGB_color Grey89;
731 static const sRGB_color Grey9;
732 static const sRGB_color Grey90;
733 static const sRGB_color Grey91;
734 static const sRGB_color Grey92;
735 static const sRGB_color Grey93;
736 static const sRGB_color Grey94;
737 static const sRGB_color Grey95;
738 static const sRGB_color Grey96;
739 static const sRGB_color Grey97;
740 static const sRGB_color Grey98;
741 static const sRGB_color Grey99;
742 static const sRGB_color Honeydew;
743 static const sRGB_color Honeydew1;
744 static const sRGB_color Honeydew2;
745 static const sRGB_color Honeydew3;
746 static const sRGB_color Honeydew4;
747 static const sRGB_color HotPink;
748 static const sRGB_color HotPink1;
749 static const sRGB_color HotPink2;
750 static const sRGB_color HotPink3;
751 static const sRGB_color HotPink4;
752 static const sRGB_color IndianRed;
753 static const sRGB_color IndianRed1;
754 static const sRGB_color IndianRed2;
755 static const sRGB_color IndianRed3;
756 static const sRGB_color IndianRed4;
757 static const sRGB_color Ivory;
758 static const sRGB_color Ivory1;
759 static const sRGB_color Ivory2;
760 static const sRGB_color Ivory3;
761 static const sRGB_color Ivory4;
762 static const sRGB_color Khaki;
763 static const sRGB_color Khaki1;
764 static const sRGB_color Khaki2;
765 static const sRGB_color Khaki3;
766 static const sRGB_color Khaki4;
767 static const sRGB_color Lavender;
773 static const sRGB_color LawnGreen;
779 static const sRGB_color LightBlue;
780 static const sRGB_color LightBlue1;
781 static const sRGB_color LightBlue2;
782 static const sRGB_color LightBlue3;
783 static const sRGB_color LightBlue4;
784 static const sRGB_color LightCoral;
785 static const sRGB_color LightCyan;
786 static const sRGB_color LightCyan1;
787 static const sRGB_color LightCyan2;
788 static const sRGB_color LightCyan3;
789 static const sRGB_color LightCyan4;
796 static const sRGB_color LightGray;
797 static const sRGB_color LightGreen;
798 static const sRGB_color LightGrey;
799 static const sRGB_color LightPink;
800 static const sRGB_color LightPink1;
801 static const sRGB_color LightPink2;
802 static const sRGB_color LightPink3;
803 static const sRGB_color LightPink4;
828 static const sRGB_color LimeGreen;
829 static const sRGB_color Linen;
830 static const sRGB_color Magenta;
831 static const sRGB_color Magenta1;
832 static const sRGB_color Magenta2;
833 static const sRGB_color Magenta3;
834 static const sRGB_color Magenta4;
835 static const sRGB_color Maroon;
836 static const sRGB_color Maroon1;
837 static const sRGB_color Maroon2;
838 static const sRGB_color Maroon3;
839 static const sRGB_color Maroon4;
841 static const sRGB_color MediumBlue;
858 static const sRGB_color MintCream;
859 static const sRGB_color MistyRose;
860 static const sRGB_color MistyRose1;
861 static const sRGB_color MistyRose2;
862 static const sRGB_color MistyRose3;
863 static const sRGB_color MistyRose4;
864 static const sRGB_color Moccasin;
870 static const sRGB_color Navy;
871 static const sRGB_color NavyBlue;
872 static const sRGB_color OldLace;
873 static const sRGB_color OliveDrab;
874 static const sRGB_color OliveDrab1;
875 static const sRGB_color OliveDrab2;
876 static const sRGB_color OliveDrab3;
877 static const sRGB_color OliveDrab4;
878 static const sRGB_color Orange;
879 static const sRGB_color Orange1;
880 static const sRGB_color Orange2;
881 static const sRGB_color Orange3;
882 static const sRGB_color Orange4;
883 static const sRGB_color OrangeRed;
884 static const sRGB_color OrangeRed1;
885 static const sRGB_color OrangeRed2;
886 static const sRGB_color OrangeRed3;
887 static const sRGB_color OrangeRed4;
888 static const sRGB_color Orchid;
889 static const sRGB_color Orchid1;
890 static const sRGB_color Orchid2;
891 static const sRGB_color Orchid3;
892 static const sRGB_color Orchid4;
894 static const sRGB_color PaleGreen;
895 static const sRGB_color PaleGreen1;
896 static const sRGB_color PaleGreen2;
897 static const sRGB_color PaleGreen3;
898 static const sRGB_color PaleGreen4;
909 static const sRGB_color PapayaWhip;
910 static const sRGB_color PeachPuff;
911 static const sRGB_color PeachPuff1;
912 static const sRGB_color PeachPuff2;
913 static const sRGB_color PeachPuff3;
914 static const sRGB_color PeachPuff4;
915 static const sRGB_color Peru;
916 static const sRGB_color Pink;
917 static const sRGB_color Pink1;
918 static const sRGB_color Pink2;
919 static const sRGB_color Pink3;
920 static const sRGB_color Pink4;
921 static const sRGB_color Plum;
922 static const sRGB_color Plum1;
923 static const sRGB_color Plum2;
924 static const sRGB_color Plum3;
925 static const sRGB_color Plum4;
926 static const sRGB_color PowderBlue;
927 static const sRGB_color Purple;
928 static const sRGB_color Purple1;
929 static const sRGB_color Purple2;
930 static const sRGB_color Purple3;
931 static const sRGB_color Purple4;
932 static const sRGB_color Red;
933 static const sRGB_color Red1;
934 static const sRGB_color Red2;
935 static const sRGB_color Red3;
936 static const sRGB_color Red4;
937 static const sRGB_color RosyBrown;
938 static const sRGB_color RosyBrown1;
939 static const sRGB_color RosyBrown2;
940 static const sRGB_color RosyBrown3;
941 static const sRGB_color RosyBrown4;
942 static const sRGB_color RoyalBlue;
943 static const sRGB_color RoyalBlue1;
944 static const sRGB_color RoyalBlue2;
945 static const sRGB_color RoyalBlue3;
946 static const sRGB_color RoyalBlue4;
948 static const sRGB_color Salmon;
949 static const sRGB_color Salmon1;
950 static const sRGB_color Salmon2;
951 static const sRGB_color Salmon3;
952 static const sRGB_color Salmon4;
953 static const sRGB_color SandyBrown;
954 static const sRGB_color SeaGreen;
955 static const sRGB_color SeaGreen1;
956 static const sRGB_color SeaGreen2;
957 static const sRGB_color SeaGreen3;
958 static const sRGB_color SeaGreen4;
959 static const sRGB_color Seashell;
960 static const sRGB_color Seashell1;
961 static const sRGB_color Seashell2;
962 static const sRGB_color Seashell3;
963 static const sRGB_color Seashell4;
964 static const sRGB_color Sienna;
965 static const sRGB_color Sienna1;
966 static const sRGB_color Sienna2;
967 static const sRGB_color Sienna3;
968 static const sRGB_color Sienna4;
969 static const sRGB_color Silver;
970 static const sRGB_color SkyBlue;
971 static const sRGB_color SkyBlue1;
972 static const sRGB_color SkyBlue2;
973 static const sRGB_color SkyBlue3;
974 static const sRGB_color SkyBlue4;
975 static const sRGB_color SlateBlue;
976 static const sRGB_color SlateBlue1;
977 static const sRGB_color SlateBlue2;
978 static const sRGB_color SlateBlue3;
979 static const sRGB_color SlateBlue4;
980 static const sRGB_color SlateGray;
981 static const sRGB_color SlateGray1;
982 static const sRGB_color SlateGray2;
983 static const sRGB_color SlateGray3;
984 static const sRGB_color SlateGray4;
985 static const sRGB_color SlateGrey;
986 static const sRGB_color Snow;
987 static const sRGB_color Snow1;
988 static const sRGB_color Snow2;
989 static const sRGB_color Snow3;
990 static const sRGB_color Snow4;
996 static const sRGB_color SteelBlue;
997 static const sRGB_color SteelBlue1;
998 static const sRGB_color SteelBlue2;
999 static const sRGB_color SteelBlue3;
1001 static const sRGB_color Tan;
1002 static const sRGB_color Tan1;
1003 static const sRGB_color Tan2;
1004 static const sRGB_color Tan3;
1005 static const sRGB_color Tan4;
1006 static const sRGB_color Thistle;
1007 static const sRGB_color Thistle1;
1008 static const sRGB_color Thistle2;
1009 static const sRGB_color Thistle3;
1010 static const sRGB_color Thistle4;
1011 static const sRGB_color Tomato;
1012 static const sRGB_color Tomato1;
1013 static const sRGB_color Tomato2;
1014 static const sRGB_color Tomato3;
1015 static const sRGB_color Tomato4;
1016 static const sRGB_color Turquoise;
1021 static const sRGB_color Violet;
1022 static const sRGB_color VioletRed;
1027 static const sRGB_color Wheat;
1028 static const sRGB_color Wheat1;
1029 static const sRGB_color Wheat2;
1030 static const sRGB_color Wheat3;
1031 static const sRGB_color Wheat4;
1032 static const sRGB_color White;
1034 static const sRGB_color Yellow;
1035 static const sRGB_color Yellow1;
1036 static const sRGB_color Yellow2;
1037 static const sRGB_color Yellow3;
1038 static const sRGB_color Yellow4;
1040 // construction
1041 public:
1044 sRGB_color(const sRGB_color& aOther);
1046 explicit sRGB_color(const base_type& aOther);
1047 explicit sRGB_color(const linear_color& aLinear);
1048 sRGB_color(std::string const& aTextValue);
1049 // assignment
1050 public:
1053 // comparison
1054 public:
1055 bool operator==(const sRGB_color& aOther) const;
1056 bool operator<(const sRGB_color& aOther) const;
1057 auto operator<=>(const sRGB_color& aOther) const = default;
1058 // operations
1059 public:
1060 static sRGB_color from_linear(const linear_color& aLinear);
1061 static optional<sRGB_color> from_name(std::string const& aName);
1064 scalar luma() const;
1065 };
1066
1068
1070
1071 inline color mix(const color& aLhs, const color& aRhs, double aMixValue)
1072 {
1073 return color{
1074 mix(aLhs.red<double>(), aRhs.red<double>(), aMixValue),
1075 mix(aLhs.green<double>(), aRhs.green<double>(), aMixValue),
1076 mix(aLhs.blue<double>(), aRhs.blue<double>(), aMixValue),
1077 mix(aLhs.alpha<double>(), aRhs.alpha<double>(), aMixValue) };
1078 }
1079}
1080
1082
1083#include "color.inl"
return_type & set_alpha(view_component aAlpha)
Definition color.hpp:143
BaseComponent base_component
Definition color.hpp:82
return_type & set_alpha(T aAlpha)
Definition color.hpp:149
basic_color(const self_type &aOther)
Definition color.hpp:117
view_component alpha() const
Definition color.hpp:134
static constexpr std::size_t component_count
Definition color.hpp:88
static constexpr color_space color_space
Definition color.hpp:87
return_type with_alpha(T aAlpha) const
Definition color.hpp:159
static constexpr std::size_t alpha_component_index
Definition color.hpp:89
static To convert(From aComponent)
Definition color.hpp:93
color_return_type_cracker< self_type, derived_type >::return_type return_type
Definition color.hpp:84
return_type with_combined_alpha(T aAlpha) const
Definition color.hpp:168
basic_color(const basic_vector< BaseComponent, ColorComponentCount > &aNoAlpha)
Definition color.hpp:112
T alpha() const
Definition color.hpp:139
self_type & operator=(const self_type &aOther)
Definition color.hpp:123
static view_component base_to_view(base_component aComponent)
Definition color.hpp:130
return_type with_alpha(view_component aAlpha) const
Definition color.hpp:154
return_type with_combined_alpha(view_component aAlpha) const
Definition color.hpp:163
ViewComponent view_component
Definition color.hpp:83
base_type abstract_type
Definition color.hpp:81
view_component green() const
Definition color.hpp:249
return_type & set_alpha(view_component aAlpha)
Definition color.hpp:143
basic_rgb_color(const vec3 &aBaseNoAlpha)
Definition color.hpp:200
BaseComponent base_component
Definition color.hpp:82
return_type & lighten(view_component aDelta)
Definition color.inl:103
return_type lighter(view_component aDelta) const
Definition color.inl:117
static return_type from_hsv(scalar aHue, scalar aSaturation, scalar aValue, scalar aAlpha=1.0)
Definition color.inl:35
return_type & darken(view_component aDelta)
Definition color.inl:110
basic_rgb_color(uint32_t aRed, uint32_t aGreen, uint32_t aBlue, uint32_t aAlpha=0xFF)
Definition color.hpp:208
basic_rgb_color(view_component aRed, view_component aGreen, view_component aBlue, view_component aAlpha=0xFF)
Definition color.hpp:204
return_type operator~() const
Definition color.inl:218
return_type with_green(T aGreen) const
Definition color.hpp:323
return_type mix(const self_type &aOther, scalar aValue) const
Definition color.inl:81
return_type & set_red(T aRed)
Definition color.hpp:288
basic_rgb_color(const self_type &aOther)
Definition color.hpp:198
std::string to_string() const
Definition color.inl:238
return_type shaded(view_component aDelta) const
Definition color.inl:151
return_type & unshade(view_component aDelta)
Definition color.inl:142
return_type & set_red(view_component aRed)
Definition color.hpp:272
static const argb RedShift
Definition color.hpp:187
view_component alpha() const
Definition color.hpp:134
hsv_color to_hsv() const
Definition color.inl:53
return_type mid(const self_type &aOther) const
Definition color.inl:71
bool similar_intensity(const self_type &aOther, scalar aThreshold=0.5) const
Definition color.inl:65
return_type & set_green(T aGreen)
Definition color.hpp:294
return_type with_red(T aRed) const
Definition color.hpp:318
self_type & operator=(const self_type &aOther)
Definition color.hpp:217
return_type unshaded(view_component aDelta) const
Definition color.inl:160
return_type with_red(view_component aRed) const
Definition color.hpp:305
bool light(scalar aThreshold=0.50) const
Definition color.inl:91
self_type & operator=(const base_type &aOther)
Definition color.hpp:222
static To convert(From aComponent)
Definition color.hpp:93
return_type inverse() const
Definition color.inl:192
color_return_type_cracker< self_type, derived_type >::return_type return_type
Definition color.hpp:84
basic_rgb_color(int32_t aRed, int32_t aGreen, int32_t aBlue, int32_t aAlpha=0xFF)
Definition color.hpp:206
argb as_argb() const
Definition color.inl:41
hsl_color to_hsl() const
Definition color.inl:47
return_type with_green(view_component aGreen) const
Definition color.hpp:309
static const argb AlphaShift
Definition color.hpp:186
return_type & set_blue(view_component aBlue)
Definition color.hpp:282
bool dark(scalar aThreshold=0.50) const
Definition color.inl:97
return_type same_lightness_as(const self_type &aOther) const
Definition color.inl:176
view_component blue() const
Definition color.hpp:253
basic_rgb_color(T aRed, T aGreen, T aBlue, T aAlpha=1.0, std::enable_if_t< std::is_scalar_v< T > &&!std::is_same_v< view_component, T >, sfinae >={})
Definition color.hpp:211
return_type & operator+=(view_component aDelta)
Definition color.inl:198
std::string to_hex_string() const
Definition color.inl:246
static return_type from_hsl(scalar aHue, scalar aSaturation, scalar aLightness, scalar aAlpha=1.0)
Definition color.inl:29
auto operator<=>(const self_type &aOther) const =default
return_type & set_blue(T aBlue)
Definition color.hpp:300
return_type & shade(view_component aDelta)
Definition color.inl:133
basic_rgb_color(const vec4 &aBase)
Definition color.hpp:202
return_type & set_green(view_component aGreen)
Definition color.hpp:277
return_type with_blue(view_component aBlue) const
Definition color.hpp:313
static self_type from_argb(argb aValue)
Definition color.hpp:229
view_component red() const
Definition color.hpp:245
static view_component base_to_view(base_component aComponent)
Definition color.hpp:130
scalar intensity() const
Definition color.inl:59
return_type & operator-=(view_component aDelta)
Definition color.inl:208
return_type with_lightness(scalar aLightness) const
Definition color.inl:184
static const argb BlueShift
Definition color.hpp:189
static const argb GreenShift
Definition color.hpp:188
return_type monochrome() const
Definition color.inl:169
basic_rgb_color(argb aValue)
Definition color.hpp:213
return_type darker(view_component aDelta) const
Definition color.inl:125
ViewComponent view_component
Definition color.hpp:83
return_type with_blue(T aBlue) const
Definition color.hpp:328
static const sRGB_color AliceBlue
Definition color.hpp:381
static const sRGB_color LightSkyBlue
Definition color.hpp:810
static const sRGB_color DarkOliveGreen
Definition color.hpp:464
static const sRGB_color Plum2
Definition color.hpp:923
static const sRGB_color Gray25
Definition color.hpp:552
static const sRGB_color MediumPurple1
Definition color.hpp:848
static const sRGB_color Orchid1
Definition color.hpp:889
static const sRGB_color Grey82
Definition color.hpp:723
static const sRGB_color Gray14
Definition color.hpp:540
static const sRGB_color Firebrick1
Definition color.hpp:514
static const sRGB_color LightYellow4
Definition color.hpp:827
static const sRGB_color LightCyan3
Definition color.hpp:788
static const sRGB_color Gray6
Definition color.hpp:590
static const sRGB_color DarkSeaGreen3
Definition color.hpp:484
static const sRGB_color Gray57
Definition color.hpp:587
static const sRGB_color Khaki4
Definition color.hpp:766
static const sRGB_color GreenYellow
Definition color.hpp:639
static const sRGB_color LightGoldenrod2
Definition color.hpp:792
static const sRGB_color Gray2
Definition color.hpp:546
static const sRGB_color LightGoldenrodYellow
Definition color.hpp:795
static const sRGB_color Grey97
Definition color.hpp:739
static const sRGB_color Grey75
Definition color.hpp:715
static const sRGB_color PaleTurquoise3
Definition color.hpp:902
static const sRGB_color PaleVioletRed2
Definition color.hpp:906
static const sRGB_color Seashell
Definition color.hpp:959
static const sRGB_color Yellow1
Definition color.hpp:1035
static const sRGB_color Gray69
Definition color.hpp:600
static const sRGB_color GhostWhite
Definition color.hpp:521
static const sRGB_color AntiqueWhite2
Definition color.hpp:384
static const sRGB_color Grey58
Definition color.hpp:696
static const sRGB_color Gray53
Definition color.hpp:583
static const sRGB_color Grey57
Definition color.hpp:695
static const sRGB_color DeepSkyBlue3
Definition color.hpp:504
static const sRGB_color Grey31
Definition color.hpp:667
auto operator<=>(const sRGB_color &aOther) const =default
static const sRGB_color AntiqueWhite
Definition color.hpp:382
static const sRGB_color PaleTurquoise2
Definition color.hpp:901
static const sRGB_color Gray81
Definition color.hpp:614
static const sRGB_color Chartreuse
Definition color.hpp:426
static const sRGB_color DeepPink
Definition color.hpp:496
static const sRGB_color Turquoise
Definition color.hpp:1016
static const sRGB_color Gray60
Definition color.hpp:591
static const sRGB_color SkyBlue
Definition color.hpp:970
static const sRGB_color DarkOliveGreen4
Definition color.hpp:468
static const sRGB_color NavajoWhite4
Definition color.hpp:869
static const sRGB_color Gray61
Definition color.hpp:592
static const sRGB_color Grey83
Definition color.hpp:724
static const sRGB_color Plum
Definition color.hpp:921
static const sRGB_color Thistle1
Definition color.hpp:1007
static const sRGB_color LawnGreen
Definition color.hpp:773
static const sRGB_color OliveDrab
Definition color.hpp:873
static const sRGB_color Gray96
Definition color.hpp:630
static const sRGB_color Grey0
Definition color.hpp:641
static const sRGB_color Grey70
Definition color.hpp:710
static const sRGB_color Gray62
Definition color.hpp:593
static const sRGB_color Sienna1
Definition color.hpp:965
static const sRGB_color PaleGreen1
Definition color.hpp:895
static const sRGB_color Gray88
Definition color.hpp:621
static const sRGB_color Grey98
Definition color.hpp:740
static const sRGB_color Gray24
Definition color.hpp:551
static const sRGB_color LightSkyBlue2
Definition color.hpp:812
static const sRGB_color SeaGreen
Definition color.hpp:954
static const sRGB_color DarkOrange3
Definition color.hpp:472
static const sRGB_color Honeydew4
Definition color.hpp:746
static const sRGB_color Tomato4
Definition color.hpp:1015
static const sRGB_color PaleVioletRed
Definition color.hpp:904
static const sRGB_color Gray18
Definition color.hpp:544
static const sRGB_color SlateGray
Definition color.hpp:980
static const sRGB_color Grey3
Definition color.hpp:665
static const sRGB_color PaleTurquoise
Definition color.hpp:899
static const sRGB_color HotPink
Definition color.hpp:747
static const sRGB_color Aquamarine4
Definition color.hpp:391
static const sRGB_color NavajoWhite
Definition color.hpp:865
static const sRGB_color Gray22
Definition color.hpp:549
static const sRGB_color Gray50
Definition color.hpp:580
static const sRGB_color Chocolate
Definition color.hpp:431
static const sRGB_color RoyalBlue1
Definition color.hpp:943
static const sRGB_color Salmon1
Definition color.hpp:949
static const sRGB_color Gray7
Definition color.hpp:601
static const sRGB_color MistyRose3
Definition color.hpp:862
static const sRGB_color Coral
Definition color.hpp:436
static const sRGB_color Goldenrod4
Definition color.hpp:531
static const sRGB_color MediumPurple4
Definition color.hpp:851
static const sRGB_color LightPink1
Definition color.hpp:800
static const sRGB_color Grey72
Definition color.hpp:712
static const sRGB_color Gray4
Definition color.hpp:568
static const sRGB_color LightSkyBlue1
Definition color.hpp:811
static const sRGB_color Gray77
Definition color.hpp:609
static const sRGB_color Pink3
Definition color.hpp:919
static const sRGB_color Grey86
Definition color.hpp:727
static const sRGB_color Chocolate1
Definition color.hpp:432
static const sRGB_color PaleVioletRed4
Definition color.hpp:908
static const sRGB_color Grey26
Definition color.hpp:661
static const sRGB_color Khaki
Definition color.hpp:762
static const sRGB_color Grey99
Definition color.hpp:741
static const sRGB_color RosyBrown
Definition color.hpp:937
static const sRGB_color Gray67
Definition color.hpp:598
static const sRGB_color Grey62
Definition color.hpp:701
static const sRGB_color DeepSkyBlue
Definition color.hpp:501
static const sRGB_color LightCyan2
Definition color.hpp:787
static const sRGB_color Pink
Definition color.hpp:916
static const sRGB_color Grey40
Definition color.hpp:677
static const sRGB_color Grey
Definition color.hpp:640
static const sRGB_color Grey60
Definition color.hpp:699
static const sRGB_color OldLace
Definition color.hpp:872
static const sRGB_color Silver
Definition color.hpp:969
static const sRGB_color LavenderBlush2
Definition color.hpp:770
static const sRGB_color PaleGoldenrod
Definition color.hpp:893
static const sRGB_color SpringGreen3
Definition color.hpp:994
static const sRGB_color Cornsilk1
Definition color.hpp:443
static const sRGB_color Magenta1
Definition color.hpp:831
static const sRGB_color Snow3
Definition color.hpp:989
static const sRGB_color Gray28
Definition color.hpp:555
static const sRGB_color MediumBlue
Definition color.hpp:841
static const sRGB_color LightGoldenrod
Definition color.hpp:790
static sRGB_color from_linear(const linear_color &aLinear)
static const sRGB_color DebianRed
Definition color.hpp:495
static const sRGB_color DarkGrey
Definition color.hpp:461
static const sRGB_color MediumVioletRed
Definition color.hpp:856
static const sRGB_color Grey36
Definition color.hpp:672
static const sRGB_color DeepSkyBlue2
Definition color.hpp:503
static const sRGB_color Gray76
Definition color.hpp:608
static const sRGB_color MediumOrchid1
Definition color.hpp:843
static const sRGB_color Grey63
Definition color.hpp:702
static const sRGB_color Grey85
Definition color.hpp:726
static const sRGB_color MistyRose4
Definition color.hpp:863
static const sRGB_color Seashell2
Definition color.hpp:961
static const sRGB_color Chartreuse3
Definition color.hpp:429
static const sRGB_color SpringGreen1
Definition color.hpp:992
static const sRGB_color LightGoldenrod1
Definition color.hpp:791
static const sRGB_color Burlywood1
Definition color.hpp:417
static const sRGB_color Grey53
Definition color.hpp:691
static const sRGB_color MediumSeaGreen
Definition color.hpp:852
static const sRGB_color PaleGreen4
Definition color.hpp:898
static const sRGB_color Grey80
Definition color.hpp:721
static const sRGB_color RoyalBlue2
Definition color.hpp:944
static const sRGB_color DarkCyan
Definition color.hpp:453
static const sRGB_color Grey8
Definition color.hpp:720
static const sRGB_color DimGray
Definition color.hpp:506
static const sRGB_color Wheat1
Definition color.hpp:1028
static const sRGB_color Tan3
Definition color.hpp:1004
static const sRGB_color Gainsboro
Definition color.hpp:520
static const sRGB_color SlateGray1
Definition color.hpp:981
static const sRGB_color Gray36
Definition color.hpp:564
static const sRGB_color DarkMagenta
Definition color.hpp:463
static const sRGB_color LightSalmon2
Definition color.hpp:806
static const sRGB_color RosyBrown3
Definition color.hpp:940
static const sRGB_color Ivory2
Definition color.hpp:759
static const sRGB_color Bisque
Definition color.hpp:398
static const sRGB_color Grey37
Definition color.hpp:673
static const sRGB_color Gold
Definition color.hpp:522
static const sRGB_color Maroon3
Definition color.hpp:838
static const sRGB_color Seashell1
Definition color.hpp:960
static const sRGB_color Green3
Definition color.hpp:637
static const sRGB_color SteelBlue2
Definition color.hpp:998
static const sRGB_color SkyBlue4
Definition color.hpp:974
static const sRGB_color Khaki3
Definition color.hpp:765
static const sRGB_color Sienna
Definition color.hpp:964
static const sRGB_color Gray30
Definition color.hpp:558
static const sRGB_color SlateGrey
Definition color.hpp:985
static const sRGB_color Goldenrod3
Definition color.hpp:530
static const sRGB_color Grey84
Definition color.hpp:725
static const sRGB_color SkyBlue2
Definition color.hpp:972
static const sRGB_color LightSlateGrey
Definition color.hpp:817
static const sRGB_color LightSalmon4
Definition color.hpp:808
static const sRGB_color Ivory1
Definition color.hpp:758
static const sRGB_color Gray82
Definition color.hpp:615
static const sRGB_color LightPink
Definition color.hpp:799
static const sRGB_color Gray66
Definition color.hpp:597
static const sRGB_color DarkGoldenrod
Definition color.hpp:454
static const sRGB_color RoyalBlue3
Definition color.hpp:945
sRGB_color & operator=(const sRGB_color &aOther)
static const sRGB_color Grey65
Definition color.hpp:704
static const sRGB_color SeaGreen1
Definition color.hpp:955
static const sRGB_color DodgerBlue1
Definition color.hpp:509
static const sRGB_color SteelBlue3
Definition color.hpp:999
static const sRGB_color Grey38
Definition color.hpp:674
static const sRGB_color MediumPurple
Definition color.hpp:847
static const sRGB_color MediumPurple2
Definition color.hpp:849
static const sRGB_color Gray75
Definition color.hpp:607
static const sRGB_color IndianRed1
Definition color.hpp:753
static const sRGB_color DimGrey
Definition color.hpp:507
static const sRGB_color Coral4
Definition color.hpp:440
static const sRGB_color DarkSlateGray
Definition color.hpp:487
static const sRGB_color Aquamarine
Definition color.hpp:387
static const sRGB_color FloralWhite
Definition color.hpp:518
static const sRGB_color Gray33
Definition color.hpp:561
static const sRGB_color Beige
Definition color.hpp:397
static const sRGB_color LemonChiffon3
Definition color.hpp:777
bool operator==(const sRGB_color &aOther) const
static const sRGB_color LightCyan4
Definition color.hpp:789
static const sRGB_color Wheat4
Definition color.hpp:1031
static const sRGB_color Gray74
Definition color.hpp:606
sRGB_color & operator=(const base_type &aOther)
static const sRGB_color Firebrick3
Definition color.hpp:516
static const sRGB_color MidnightBlue
Definition color.hpp:857
static const sRGB_color PapayaWhip
Definition color.hpp:909
static const sRGB_color NavajoWhite2
Definition color.hpp:867
static const sRGB_color Orchid
Definition color.hpp:888
static const sRGB_color SlateBlue3
Definition color.hpp:978
static const sRGB_color Grey17
Definition color.hpp:651
static const sRGB_color LavenderBlush1
Definition color.hpp:769
static const sRGB_color LightYellow3
Definition color.hpp:826
static const sRGB_color MediumOrchid
Definition color.hpp:842
static const sRGB_color Cyan3
Definition color.hpp:450
static const sRGB_color Grey51
Definition color.hpp:689
static const sRGB_color Gray100
Definition color.hpp:536
static const sRGB_color Cyan4
Definition color.hpp:451
static const sRGB_color Yellow
Definition color.hpp:1034
static const sRGB_color OrangeRed4
Definition color.hpp:887
static const sRGB_color Seashell3
Definition color.hpp:962
static const sRGB_color RosyBrown1
Definition color.hpp:938
static const sRGB_color LightGray
Definition color.hpp:796
static const sRGB_color Cornsilk
Definition color.hpp:442
static const sRGB_color Ivory4
Definition color.hpp:761
static const sRGB_color Gray58
Definition color.hpp:588
static const sRGB_color LightGrey
Definition color.hpp:798
static const sRGB_color Red3
Definition color.hpp:935
static const sRGB_color Thistle2
Definition color.hpp:1008
static const sRGB_color Gray80
Definition color.hpp:613
static const sRGB_color Coral3
Definition color.hpp:439
static const sRGB_color PeachPuff3
Definition color.hpp:913
static const sRGB_color Gray95
Definition color.hpp:629
static const sRGB_color Bisque2
Definition color.hpp:400
static const sRGB_color Grey6
Definition color.hpp:698
static const sRGB_color Violet
Definition color.hpp:1021
static const sRGB_color Grey78
Definition color.hpp:718
static const sRGB_color Grey54
Definition color.hpp:692
static const sRGB_color Purple4
Definition color.hpp:931
static const sRGB_color Green4
Definition color.hpp:638
static const sRGB_color LightBlue4
Definition color.hpp:783
static const sRGB_color Grey90
Definition color.hpp:732
static const sRGB_color SlateBlue
Definition color.hpp:975
static const sRGB_color Gray79
Definition color.hpp:611
static const sRGB_color LightSteelBlue
Definition color.hpp:818
static const sRGB_color Grey49
Definition color.hpp:686
static const sRGB_color ForestGreen
Definition color.hpp:519
static const sRGB_color Khaki1
Definition color.hpp:763
static const sRGB_color Grey29
Definition color.hpp:664
static const sRGB_color DarkOrchid4
Definition color.hpp:478
static const sRGB_color Gray70
Definition color.hpp:602
static const sRGB_color Gray11
Definition color.hpp:537
static const sRGB_color Grey88
Definition color.hpp:729
static const sRGB_color LightCyan1
Definition color.hpp:786
static const sRGB_color DarkKhaki
Definition color.hpp:462
static const sRGB_color Gray39
Definition color.hpp:567
static const sRGB_color Gray63
Definition color.hpp:594
static const sRGB_color Linen
Definition color.hpp:829
static const sRGB_color LightGreen
Definition color.hpp:797
static const sRGB_color Brown3
Definition color.hpp:414
static const sRGB_color Orange
Definition color.hpp:878
static const sRGB_color WhiteSmoke
Definition color.hpp:1033
static const sRGB_color DarkGoldenrod1
Definition color.hpp:455
sRGB_color(const abstract_type &aOther)
static const sRGB_color LightPink2
Definition color.hpp:801
static const sRGB_color LightPink4
Definition color.hpp:803
static const sRGB_color Thistle4
Definition color.hpp:1010
static const sRGB_color DarkViolet
Definition color.hpp:494
static const sRGB_color DarkOrange2
Definition color.hpp:471
static const sRGB_color Magenta2
Definition color.hpp:832
static const sRGB_color LightSkyBlue3
Definition color.hpp:813
static const sRGB_color Thistle
Definition color.hpp:1006
static const sRGB_color Lavender
Definition color.hpp:767
static const sRGB_color Maroon1
Definition color.hpp:836
static const sRGB_color MediumSpringGreen
Definition color.hpp:854
static const sRGB_color Wheat
Definition color.hpp:1027
static const sRGB_color Gray23
Definition color.hpp:550
static const sRGB_color White
Definition color.hpp:1032
static const sRGB_color LightYellow
Definition color.hpp:823
static const sRGB_color LightSteelBlue1
Definition color.hpp:819
static const sRGB_color Gray31
Definition color.hpp:559
static const sRGB_color LightPink3
Definition color.hpp:802
static const sRGB_color LightGoldenrod3
Definition color.hpp:793
static const sRGB_color Gray43
Definition color.hpp:572
static const sRGB_color Grey92
Definition color.hpp:734
static const sRGB_color Magenta
Definition color.hpp:830
static const sRGB_color Burlywood
Definition color.hpp:416
static const sRGB_color Pink4
Definition color.hpp:920
static const sRGB_color Salmon3
Definition color.hpp:951
static const sRGB_color Grey47
Definition color.hpp:684
static const sRGB_color Grey34
Definition color.hpp:670
static const sRGB_color Gray56
Definition color.hpp:586
static const sRGB_color Gray37
Definition color.hpp:565
static const sRGB_color Seashell4
Definition color.hpp:963
static const sRGB_color Turquoise1
Definition color.hpp:1017
static const sRGB_color Red
Definition color.hpp:932
static const sRGB_color Gray17
Definition color.hpp:543
static const sRGB_color Cyan
Definition color.hpp:447
sRGB_color(const sRGB_color &aOther)
static const sRGB_color PaleVioletRed1
Definition color.hpp:905
sRGB_color(const base_type &aOther)
static const sRGB_color Gray59
Definition color.hpp:589
static const sRGB_color LemonChiffon4
Definition color.hpp:778
static const sRGB_color Thistle3
Definition color.hpp:1009
static const sRGB_color Grey76
Definition color.hpp:716
static const sRGB_color SteelBlue
Definition color.hpp:996
static const sRGB_color LightCoral
Definition color.hpp:784
static const sRGB_color LemonChiffon2
Definition color.hpp:776
static const sRGB_color Gray51
Definition color.hpp:581
static const sRGB_color Gray5
Definition color.hpp:579
static const sRGB_color SlateGray2
Definition color.hpp:982
static const sRGB_color Yellow2
Definition color.hpp:1036
static const sRGB_color OliveDrab2
Definition color.hpp:875
static const sRGB_color Maroon2
Definition color.hpp:837
static const sRGB_color Grey87
Definition color.hpp:728
static const sRGB_color Tan1
Definition color.hpp:1002
static const sRGB_color Gray20
Definition color.hpp:547
static const sRGB_color LightGoldenrod4
Definition color.hpp:794
static const sRGB_color OliveDrab3
Definition color.hpp:876
static const sRGB_color OrangeRed3
Definition color.hpp:886
static const sRGB_color Peru
Definition color.hpp:915
static const sRGB_color LightBlue
Definition color.hpp:779
static const sRGB_color Gray90
Definition color.hpp:624
bool operator<(const sRGB_color &aOther) const
static const sRGB_color MediumOrchid3
Definition color.hpp:845
static const sRGB_color LemonChiffon1
Definition color.hpp:775
static const sRGB_color DarkSalmon
Definition color.hpp:480
static const sRGB_color Cornsilk3
Definition color.hpp:445
static const sRGB_color Gray15
Definition color.hpp:541
static const sRGB_color Gray40
Definition color.hpp:569
static const sRGB_color DeepPink3
Definition color.hpp:499
static const sRGB_color Grey21
Definition color.hpp:656
static const sRGB_color SeaGreen4
Definition color.hpp:958
static const sRGB_color Purple1
Definition color.hpp:928
static const sRGB_color SaddleBrown
Definition color.hpp:947
static const sRGB_color Gray73
Definition color.hpp:605
static const sRGB_color Gray52
Definition color.hpp:582
static const sRGB_color Grey71
Definition color.hpp:711
static const sRGB_color Grey66
Definition color.hpp:705
static const sRGB_color Cornsilk2
Definition color.hpp:444
static const sRGB_color Goldenrod
Definition color.hpp:527
static const sRGB_color CadetBlue4
Definition color.hpp:425
static const sRGB_color Grey77
Definition color.hpp:717
static const sRGB_color Grey5
Definition color.hpp:687
static const sRGB_color Brown2
Definition color.hpp:413
static const sRGB_color Gray72
Definition color.hpp:604
static const sRGB_color Turquoise3
Definition color.hpp:1019
static const sRGB_color Grey69
Definition color.hpp:708
linear_color to_linear() const
static const sRGB_color Orchid2
Definition color.hpp:890
static const sRGB_color Snow1
Definition color.hpp:987
static const sRGB_color SpringGreen
Definition color.hpp:991
static const sRGB_color DarkOrange1
Definition color.hpp:470
static const sRGB_color Chocolate4
Definition color.hpp:435
static const sRGB_color DarkSeaGreen1
Definition color.hpp:482
static const sRGB_color DarkOrchid1
Definition color.hpp:475
static const sRGB_color Firebrick4
Definition color.hpp:517
static const sRGB_color LightSteelBlue2
Definition color.hpp:820
static const sRGB_color CadetBlue3
Definition color.hpp:424
static const sRGB_color Grey35
Definition color.hpp:671
static const sRGB_color DarkSlateGray1
Definition color.hpp:488
static const sRGB_color LightSlateBlue
Definition color.hpp:815
static const sRGB_color BlueViolet
Definition color.hpp:410
static const sRGB_color Wheat2
Definition color.hpp:1029
static const sRGB_color Pink2
Definition color.hpp:918
static const sRGB_color Burlywood3
Definition color.hpp:419
static const sRGB_color LightYellow2
Definition color.hpp:825
static const sRGB_color Grey61
Definition color.hpp:700
static const sRGB_color Grey44
Definition color.hpp:681
static const sRGB_color Firebrick
Definition color.hpp:513
static const sRGB_color Orange4
Definition color.hpp:882
static const sRGB_color Grey32
Definition color.hpp:668
static const sRGB_color Aquamarine3
Definition color.hpp:390
static const sRGB_color Grey18
Definition color.hpp:652
static const sRGB_color VioletRed1
Definition color.hpp:1023
static const sRGB_color Tomato3
Definition color.hpp:1014
static const sRGB_color VioletRed2
Definition color.hpp:1024
static const sRGB_color Snow2
Definition color.hpp:988
static const sRGB_color HotPink1
Definition color.hpp:748
static const sRGB_color LightBlue2
Definition color.hpp:781
static const sRGB_color NavajoWhite1
Definition color.hpp:866
static const sRGB_color DarkSeaGreen
Definition color.hpp:481
static const sRGB_color DarkSlateBlue
Definition color.hpp:486
static const sRGB_color PaleGreen
Definition color.hpp:894
static const sRGB_color DeepPink4
Definition color.hpp:500
static const sRGB_color Plum1
Definition color.hpp:922
static const sRGB_color Chartreuse2
Definition color.hpp:428
static const sRGB_color Gray83
Definition color.hpp:616
static const sRGB_color Grey48
Definition color.hpp:685
static const sRGB_color Yellow4
Definition color.hpp:1038
static const sRGB_color Yellow3
Definition color.hpp:1037
static const sRGB_color Honeydew1
Definition color.hpp:743
static const sRGB_color SlateBlue1
Definition color.hpp:976
static const sRGB_color Goldenrod2
Definition color.hpp:529
static const sRGB_color IndianRed
Definition color.hpp:752
static const sRGB_color Gray99
Definition color.hpp:633
static const sRGB_color Green1
Definition color.hpp:635
static const sRGB_color Blue2
Definition color.hpp:407
static const sRGB_color Khaki2
Definition color.hpp:764
static const sRGB_color Grey25
Definition color.hpp:660
static const sRGB_color Blue4
Definition color.hpp:409
static const sRGB_color SkyBlue1
Definition color.hpp:971
static const sRGB_color Gray
Definition color.hpp:532
static const sRGB_color SandyBrown
Definition color.hpp:953
static const sRGB_color PeachPuff
Definition color.hpp:910
static const sRGB_color Grey12
Definition color.hpp:646
static const sRGB_color Grey1
Definition color.hpp:642
static const sRGB_color SeaGreen2
Definition color.hpp:956
static const sRGB_color DarkOrchid2
Definition color.hpp:476
static const sRGB_color LavenderBlush3
Definition color.hpp:771
scalar luma() const
static const sRGB_color Plum4
Definition color.hpp:925
static const sRGB_color Tomato2
Definition color.hpp:1013
static const sRGB_color Salmon4
Definition color.hpp:952
static const sRGB_color MediumTurquoise
Definition color.hpp:855
static const sRGB_color LightYellow1
Definition color.hpp:824
static const sRGB_color Gold1
Definition color.hpp:523
static const sRGB_color PeachPuff2
Definition color.hpp:912
static const sRGB_color Orchid4
Definition color.hpp:892
static const sRGB_color Gray3
Definition color.hpp:557
static const sRGB_color DodgerBlue3
Definition color.hpp:511
static const sRGB_color Tan4
Definition color.hpp:1005
static const sRGB_color IndianRed2
Definition color.hpp:754
static const sRGB_color SteelBlue4
Definition color.hpp:1000
static const sRGB_color Gold3
Definition color.hpp:525
static const sRGB_color Chocolate2
Definition color.hpp:433
static const sRGB_color Grey94
Definition color.hpp:736
static const sRGB_color Grey81
Definition color.hpp:722
static const sRGB_color Azure2
Definition color.hpp:394
static const sRGB_color Grey55
Definition color.hpp:693
static const sRGB_color Cyan2
Definition color.hpp:449
static const sRGB_color Sienna3
Definition color.hpp:967
static const sRGB_color DarkTurquoise
Definition color.hpp:493
static const sRGB_color Grey11
Definition color.hpp:645
static const sRGB_color MintCream
Definition color.hpp:858
static const sRGB_color RoyalBlue4
Definition color.hpp:946
static const sRGB_color PeachPuff4
Definition color.hpp:914
static const sRGB_color DeepSkyBlue4
Definition color.hpp:505
static const sRGB_color Gray54
Definition color.hpp:584
static const sRGB_color Gray9
Definition color.hpp:623
static const sRGB_color Maroon
Definition color.hpp:835
static const sRGB_color LavenderBlush
Definition color.hpp:768
static const sRGB_color Gray1
Definition color.hpp:534
static const sRGB_color Gray78
Definition color.hpp:610
static const sRGB_color Grey68
Definition color.hpp:707
static const sRGB_color Gray46
Definition color.hpp:575
static const sRGB_color DarkGoldenrod3
Definition color.hpp:457
static const sRGB_color LightSalmon
Definition color.hpp:804
static const sRGB_color PaleGreen2
Definition color.hpp:896
static const sRGB_color Grey19
Definition color.hpp:653
static const sRGB_color Magenta4
Definition color.hpp:834
static const sRGB_color YellowGreen
Definition color.hpp:1039
static const sRGB_color Gray55
Definition color.hpp:585
static const sRGB_color DarkSlateGray3
Definition color.hpp:490
static const sRGB_color Gray32
Definition color.hpp:560
static const sRGB_color OliveDrab4
Definition color.hpp:877
static const sRGB_color Gray21
Definition color.hpp:548
static const sRGB_color SlateBlue2
Definition color.hpp:977
static const sRGB_color Grey15
Definition color.hpp:649
static const sRGB_color HotPink3
Definition color.hpp:750
static const sRGB_color Azure3
Definition color.hpp:395
static const sRGB_color DarkRed
Definition color.hpp:479
static const sRGB_color LimeGreen
Definition color.hpp:828
static const sRGB_color SkyBlue3
Definition color.hpp:973
static const sRGB_color Gray71
Definition color.hpp:603
static const sRGB_color Grey56
Definition color.hpp:694
static const sRGB_color Gray16
Definition color.hpp:542
static const sRGB_color Grey45
Definition color.hpp:682
static const sRGB_color PaleTurquoise1
Definition color.hpp:900
static const sRGB_color Purple2
Definition color.hpp:929
static const sRGB_color Grey24
Definition color.hpp:659
static const sRGB_color DarkGray
Definition color.hpp:459
static const sRGB_color Gray87
Definition color.hpp:620
static const sRGB_color SlateGray3
Definition color.hpp:983
static const sRGB_color Grey100
Definition color.hpp:644
static const sRGB_color SpringGreen2
Definition color.hpp:993
static const sRGB_color Grey93
Definition color.hpp:735
static const sRGB_color Honeydew
Definition color.hpp:742
static const sRGB_color DodgerBlue2
Definition color.hpp:510
static const sRGB_color Plum3
Definition color.hpp:924
static const sRGB_color Grey39
Definition color.hpp:675
static const sRGB_color AntiqueWhite3
Definition color.hpp:385
static const sRGB_color PeachPuff1
Definition color.hpp:911
static const sRGB_color Gray13
Definition color.hpp:539
static const sRGB_color Grey10
Definition color.hpp:643
static const sRGB_color Sienna2
Definition color.hpp:966
scalar brightness() const
static const sRGB_color Grey30
Definition color.hpp:666
static const sRGB_color Grey22
Definition color.hpp:657
static const sRGB_color Bisque1
Definition color.hpp:399
static const sRGB_color Pink1
Definition color.hpp:917
static const sRGB_color LemonChiffon
Definition color.hpp:774
static const sRGB_color Magenta3
Definition color.hpp:833
static const sRGB_color SeaGreen3
Definition color.hpp:957
static const sRGB_color PaleVioletRed3
Definition color.hpp:907
static const sRGB_color Gray94
Definition color.hpp:628
static const sRGB_color Brown4
Definition color.hpp:415
static const sRGB_color Cornsilk4
Definition color.hpp:446
static const sRGB_color RosyBrown4
Definition color.hpp:941
static const sRGB_color Gray45
Definition color.hpp:574
static const sRGB_color DodgerBlue4
Definition color.hpp:512
static const sRGB_color Bisque3
Definition color.hpp:401
static const sRGB_color DarkSeaGreen2
Definition color.hpp:483
static const sRGB_color Gray34
Definition color.hpp:562
static const sRGB_color LavenderBlush4
Definition color.hpp:772
static const sRGB_color Gray93
Definition color.hpp:627
static const sRGB_color Red2
Definition color.hpp:934
static const sRGB_color Blue3
Definition color.hpp:408
static const sRGB_color Honeydew3
Definition color.hpp:745
static const sRGB_color Grey23
Definition color.hpp:658
static const sRGB_color Gray97
Definition color.hpp:631
static const sRGB_color DarkSlateGrey
Definition color.hpp:492
static const sRGB_color Purple3
Definition color.hpp:930
static const sRGB_color Gray64
Definition color.hpp:595
static const sRGB_color Grey74
Definition color.hpp:714
static const sRGB_color Chocolate3
Definition color.hpp:434
static const sRGB_color Tomato1
Definition color.hpp:1012
static const sRGB_color Grey16
Definition color.hpp:650
static const sRGB_color Gray42
Definition color.hpp:571
static const sRGB_color Aquamarine1
Definition color.hpp:388
static const sRGB_color DeepPink1
Definition color.hpp:497
static const sRGB_color Coral2
Definition color.hpp:438
static const sRGB_color Gray98
Definition color.hpp:632
static const sRGB_color Blue
Definition color.hpp:405
static const sRGB_color Turquoise4
Definition color.hpp:1020
static const sRGB_color VioletRed
Definition color.hpp:1022
static const sRGB_color Wheat3
Definition color.hpp:1030
static const sRGB_color SteelBlue1
Definition color.hpp:997
static const sRGB_color LightSalmon1
Definition color.hpp:805
static const sRGB_color Grey9
Definition color.hpp:731
static const sRGB_color Grey20
Definition color.hpp:655
static const sRGB_color Tan2
Definition color.hpp:1003
static const sRGB_color Grey52
Definition color.hpp:690
static const sRGB_color Purple
Definition color.hpp:927
static const sRGB_color Gray35
Definition color.hpp:563
static const sRGB_color Gray26
Definition color.hpp:553
static optional< sRGB_color > from_name(std::string const &aName)
static const sRGB_color Orchid3
Definition color.hpp:891
static const sRGB_color DeepPink2
Definition color.hpp:498
static const sRGB_color Grey64
Definition color.hpp:703
static const sRGB_color DarkOrchid
Definition color.hpp:474
static const sRGB_color MediumSlateBlue
Definition color.hpp:853
static const sRGB_color RoyalBlue
Definition color.hpp:942
static const sRGB_color Grey33
Definition color.hpp:669
static const sRGB_color IndianRed3
Definition color.hpp:755
static const sRGB_color DarkOliveGreen1
Definition color.hpp:465
static const sRGB_color Gray47
Definition color.hpp:576
static const sRGB_color Grey67
Definition color.hpp:706
static const sRGB_color Grey59
Definition color.hpp:697
static const sRGB_color Bisque4
Definition color.hpp:402
static const sRGB_color Navy
Definition color.hpp:870
static const sRGB_color MistyRose1
Definition color.hpp:860
static const sRGB_color Red4
Definition color.hpp:936
static const sRGB_color Chartreuse1
Definition color.hpp:427
static const sRGB_color Azure1
Definition color.hpp:393
static const sRGB_color Gold4
Definition color.hpp:526
static const sRGB_color OrangeRed
Definition color.hpp:883
static const sRGB_color CadetBlue1
Definition color.hpp:422
static const sRGB_color DarkGreen
Definition color.hpp:460
static const sRGB_color AntiqueWhite4
Definition color.hpp:386
static const sRGB_color RosyBrown2
Definition color.hpp:939
static const sRGB_color Grey89
Definition color.hpp:730
static const sRGB_color Gray38
Definition color.hpp:566
static const sRGB_color MediumPurple3
Definition color.hpp:850
static const sRGB_color Gray19
Definition color.hpp:545
static const sRGB_color Orange2
Definition color.hpp:880
static const sRGB_color HotPink2
Definition color.hpp:749
static const sRGB_color DarkOrange4
Definition color.hpp:473
static const sRGB_color Cyan1
Definition color.hpp:448
static const sRGB_color Ivory
Definition color.hpp:757
static const sRGB_color DarkBlue
Definition color.hpp:452
static const sRGB_color BlanchedAlmond
Definition color.hpp:404
static const sRGB_color Black
Definition color.hpp:403
static const sRGB_color Brown
Definition color.hpp:411
static const sRGB_color Gray68
Definition color.hpp:599
view_component component
Definition color.hpp:378
static const sRGB_color DarkOliveGreen2
Definition color.hpp:466
static const sRGB_color Gold2
Definition color.hpp:524
static const sRGB_color DarkSeaGreen4
Definition color.hpp:485
static const sRGB_color MistyRose2
Definition color.hpp:861
static const sRGB_color Grey95
Definition color.hpp:737
static const sRGB_color LightBlue1
Definition color.hpp:780
static const sRGB_color CadetBlue2
Definition color.hpp:423
static const sRGB_color Grey91
Definition color.hpp:733
static const sRGB_color LightSalmon3
Definition color.hpp:807
static const sRGB_color Honeydew2
Definition color.hpp:744
static const sRGB_color Gray48
Definition color.hpp:577
static const sRGB_color Gray10
Definition color.hpp:535
static const sRGB_color Gray89
Definition color.hpp:622
static const sRGB_color Firebrick2
Definition color.hpp:515
static const sRGB_color Gray65
Definition color.hpp:596
static const sRGB_color Grey4
Definition color.hpp:676
static const sRGB_color Blue1
Definition color.hpp:406
static const sRGB_color LightSeaGreen
Definition color.hpp:809
static const sRGB_color Azure
Definition color.hpp:392
static const sRGB_color Gray29
Definition color.hpp:556
static const sRGB_color Grey28
Definition color.hpp:663
static const sRGB_color CornflowerBlue
Definition color.hpp:441
static const sRGB_color DarkGoldenrod4
Definition color.hpp:458
static const sRGB_color VioletRed3
Definition color.hpp:1025
static const sRGB_color DodgerBlue
Definition color.hpp:508
static const sRGB_color Goldenrod1
Definition color.hpp:528
static const sRGB_color DarkOliveGreen3
Definition color.hpp:467
static const sRGB_color Green2
Definition color.hpp:636
static const sRGB_color PaleTurquoise4
Definition color.hpp:903
static const sRGB_color HotPink4
Definition color.hpp:751
static const sRGB_color Grey14
Definition color.hpp:648
static const sRGB_color OrangeRed1
Definition color.hpp:884
static const sRGB_color PowderBlue
Definition color.hpp:926
sRGB_color(const linear_color &aLinear)
static const sRGB_color Azure4
Definition color.hpp:396
static const sRGB_color Gray86
Definition color.hpp:619
static const sRGB_color SpringGreen4
Definition color.hpp:995
static const sRGB_color Gray8
Definition color.hpp:612
sRGB_color(std::string const &aTextValue)
static const sRGB_color CadetBlue
Definition color.hpp:421
static const sRGB_color Tomato
Definition color.hpp:1011
static const sRGB_color Tan
Definition color.hpp:1001
static const sRGB_color Grey46
Definition color.hpp:683
static const sRGB_color Grey41
Definition color.hpp:678
static const sRGB_color Maroon4
Definition color.hpp:839
static const sRGB_color MediumAquamarine
Definition color.hpp:840
static const sRGB_color AntiqueWhite1
Definition color.hpp:383
static const sRGB_color Moccasin
Definition color.hpp:864
static const sRGB_color Snow
Definition color.hpp:986
static const sRGB_color Grey7
Definition color.hpp:709
static const sRGB_color Coral1
Definition color.hpp:437
static const sRGB_color Ivory3
Definition color.hpp:760
static const sRGB_color Green
Definition color.hpp:634
static const sRGB_color Salmon2
Definition color.hpp:950
static const sRGB_color Gray85
Definition color.hpp:618
static const sRGB_color Burlywood4
Definition color.hpp:420
static const sRGB_color Grey50
Definition color.hpp:688
static const sRGB_color Gray91
Definition color.hpp:625
static const sRGB_color DarkSlateGray2
Definition color.hpp:489
static const sRGB_color Orange1
Definition color.hpp:879
static const sRGB_color VioletRed4
Definition color.hpp:1026
static const sRGB_color SlateBlue4
Definition color.hpp:979
static const sRGB_color DarkOrchid3
Definition color.hpp:477
static const sRGB_color DarkSlateGray4
Definition color.hpp:491
static const sRGB_color Brown1
Definition color.hpp:412
static const sRGB_color LightSlateGray
Definition color.hpp:816
static const sRGB_color DarkOrange
Definition color.hpp:469
static const sRGB_color Red1
Definition color.hpp:933
static const sRGB_color Gray27
Definition color.hpp:554
static const sRGB_color Sienna4
Definition color.hpp:968
static const sRGB_color Gray92
Definition color.hpp:626
static const sRGB_color Grey13
Definition color.hpp:647
static const sRGB_color Gray12
Definition color.hpp:538
static const sRGB_color Chartreuse4
Definition color.hpp:430
static const sRGB_color LightSkyBlue4
Definition color.hpp:814
static const sRGB_color Grey96
Definition color.hpp:738
static const sRGB_color Orange3
Definition color.hpp:881
static const sRGB_color SlateGray4
Definition color.hpp:984
static const sRGB_color Gray41
Definition color.hpp:570
static const sRGB_color NavyBlue
Definition color.hpp:871
static const sRGB_color Grey73
Definition color.hpp:713
static const sRGB_color MistyRose
Definition color.hpp:859
static const sRGB_color Gray44
Definition color.hpp:573
static const sRGB_color Grey27
Definition color.hpp:662
static const sRGB_color Gray84
Definition color.hpp:617
static const sRGB_color Grey42
Definition color.hpp:679
static const sRGB_color DeepSkyBlue1
Definition color.hpp:502
static const sRGB_color Aquamarine2
Definition color.hpp:389
static const sRGB_color Gray0
Definition color.hpp:533
static const sRGB_color Grey79
Definition color.hpp:719
static const sRGB_color NavajoWhite3
Definition color.hpp:868
static const sRGB_color Salmon
Definition color.hpp:948
static const sRGB_color Snow4
Definition color.hpp:990
static const sRGB_color OrangeRed2
Definition color.hpp:885
static const sRGB_color LightSteelBlue3
Definition color.hpp:821
static const sRGB_color OliveDrab1
Definition color.hpp:874
static const sRGB_color DarkGoldenrod2
Definition color.hpp:456
static const sRGB_color Burlywood2
Definition color.hpp:418
static const sRGB_color MediumOrchid2
Definition color.hpp:844
static const sRGB_color PaleGreen3
Definition color.hpp:897
static const sRGB_color Gray49
Definition color.hpp:578
static const sRGB_color LightCyan
Definition color.hpp:785
static const sRGB_color Grey43
Definition color.hpp:680
static const sRGB_color MediumOrchid4
Definition color.hpp:846
static const sRGB_color LightBlue3
Definition color.hpp:782
static const sRGB_color Turquoise2
Definition color.hpp:1018
static const sRGB_color Grey2
Definition color.hpp:654
static const sRGB_color IndianRed4
Definition color.hpp:756
static const sRGB_color LightSteelBlue4
Definition color.hpp:822
#define define_setting_type(T)
scalar from_sRGB(color_space srcSpace, scalar srcValue, scalar scale)
Definition color.hpp:48
point mix(const point &aLhs, const point &aRhs, double aMixValue)
optional< color > optional_color
Definition color.hpp:1069
scalar sRGB_to_linear(scalar s, scalar scale=1.0)
scalar linear_to_sRGB(scalar l, scalar scale=1.0)
scalar to_sRGB(color_space srcSpace, scalar srcValue, scalar scale)
Definition color.hpp:36
basic_rgb_color< color_space::LinearRGB, scalar > linear_color
Definition color.hpp:371
double scalar
Definition numerical.hpp:63