mn_colors.hpp
Go to the documentation of this file.
1 /*
2 *This file is part of the Mini Thread Library = https://github.com/RoseLeBlood/MiniThread ).
3 *Copyright = c) 2018-2020 Amber-Sophia Schroeck
4 *
5 *The Mini Thread Library is free software; you can redistribute it and/or modify
6 *it under the terms of the GNU Lesser General Public License as published by
7 *the Free Software Foundation, version 3, or = at your option) any later version.
8 
9 *The Mini Thread Library is distributed in the hope that it will be useful, but
10 *WITHOUT ANY WARRANTY; without even the implied warranty of
11 *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 *General Public License for more details.
13 *
14 *You should have received a copy of the GNU Lesser General Public
15 *License along with the Mini Thread Library; if not, see
16 *<https://www.gnu.org/licenses/>.
17 */
18 
19 #ifndef __LIBMIN_73d262d0_2534_414e_9be2_0c0c4555de06_COLORS_H_
20 #define __LIBMIN_73d262d0_2534_414e_9be2_0c0c4555de06_COLORS_H_
21 
22 #include "mn_color.hpp"
23 
24 namespace mn {
25  namespace math {
26  enum class color_name : unsigned int {
27  AliceBlue = 0xF0F8FFFF,
28  AntiqueWhite = 0xFAEBD7FF,
29  Aqua = 0x00FFFFFF,
30  Aquamarine = 0x7FFFD4FF,
31  Azure = 0xF0FFFFFF,
32  Beige = 0xF5F5DCFF,
33  Bisque = 0xFFE4C4FF,
34  Black = 0x000000FF,
35  BlanchedAlmond = 0xFFEBCDFF,
36  Blue = 0x0000FFFF,
37  BlueViolet = 0x8A2BE2FF,
38  Brown = 0xA52A2AFF,
39  BurlyWood = 0xDEB887FF,
40  CadetBlue = 0x5F9EA0FF,
41  Chartreuse = 0x7FFF00FF,
42  Chocolate = 0xD2691EFF,
43  Coral = 0xFF7F50FF,
44  CornflowerBlue = 0x6495EDFF,
45  Cornsilk = 0xFFF8DCFF,
46  Crimson = 0xDC143CFF,
47  Cyan = 0x00FFFFFF,
48  DarkBlue = 0x00008BFF,
49  DarkCyan = 0x008B8BFF,
50  DarkGoldenrod = 0xB8860BFF,
51  DarkGray = 0xA9A9A9FF,
52  DarkGreen = 0x006400FF,
53  DarkKhaki = 0xBDB76BFF,
54  DarkMagenta = 0x8B008BFF,
55  DarkOliveGreen = 0x556B2FFF,
56  DarkOrange = 0xFF8C00FF,
57  DarkOrchid = 0x9932CCFF,
58  DarkRed = 0x8B0000FF,
59  DarkSalmon = 0xE9967AFF,
60  DarkSeaGreen = 0x8FBC8FFF,
61  DarkSlateBlue = 0x8FBC8FFF,
62  DarkSlateGray = 0x2F4F4FFF,
63  DarkTurquoise = 0x00CED1FF,
64  DarkViolet = 0x9400D3FF,
65  DeepPink = 0xFF1493FF,
66  DeepSkyBlue = 0x00BFFFFF,
67  DimGray = 0x696969FF,
68  DodgerBlue = 0x1E90FFFF,
69  FireBrick = 0xB22222FF,
70  FloralWhite = 0xFFFAF0FF,
71  ForestGreen = 0x228B22FF,
72  Fuchsia = 0xFF00FFFF,
73  Gainsboro = 0xDCDCDCFF,
74  GhostWhite = 0xF8F8FFFF,
75  Gold = 0xFFD700FF,
76  Goldenrod = 0xDAA520FF,
77  Gray = 0x808080FF,
78  Green = 0x008000FF,
79  GreenYellow = 0xADFF2FFF,
80  Honeydew = 0xF0FFF0FF,
81  IndianRed = 0xCD5C5CFF,
82  Indigo = 0x4B0082FF,
83  Ivory = 0xFFFFF0FF,
84  Khaki = 0xF0E68CFF,
85  Lavender = 0xE6E6FAFF,
86  LavenderBlush = 0xFFF0F5FF,
87  LawnGreen = 0x7CFC00FF,
88  LemonChiffon = 0xFFFACDFF,
89  LightBlue = 0xADD8E6FF,
90  LightCoral = 0xF08080FF,
91  LightCyan = 0xE0FFFFFF,
92  LightGoldenrodYellow = 0xFAFAD2FF,
93  LightGreen = 0x90EE90FF,
94  LightGrey = 0xD3D3D3FF,
95  LightPink = 0x228B22FF,
96  LightSalmon = 0xFFA07AFF,
97  LightSeaGreen = 0x20B2AAFF,
98  LightSkyBlue = 0x87CEFAFF,
99  LightSlateGray = 0x778899FF,
100  LightSteelBlue = 0xB0C4DEFF,
101  LightYellow = 0xFFFFE0FF,
102  Lime = 0x00FF00FF,
103  LimeGreen = 0x32CD32FF,
104  Linen = 0xFAF0E6FF,
105  Magenta = 0xFF00FFFF,
106  Maroon = 0x800000FF,
107  MediumAquamarine = 0x66CDAAFF,
108  MediumBlue = 0x0000CDFF,
109  MediumOrchid = 0xBA55D3FF,
110  MediumPurple = 0x9370DBFF,
111  MediumSeaGreen = 0x3CB371FF,
112  MediumSlateBlue = 0x7B68EEFF,
113  MediumSpringGreen = 0x00FA9AFF,
114  MediumTurquoise = 0x48D1CCFF,
115  MediumVioletRed = 0xC71585FF,
116  MidnightBlue = 0x191970FF,
117  MintCream = 0xF5FFFAFF,
118  MistyRose = 0xFFE4E1FF,
119  Moccasin = 0xFFE4B5FF,
120  NavajoWhite = 0xFFDEADFF,
121  Navy = 0x000080FF,
122  OldLace = 0xFDF5E6FF,
123  Olive = 0x808000FF,
124  OliveDrab = 0x6B8E23FF,
125  Orange = 0xFFA500FF,
126  OrangeRed = 0xFF4500FF,
127  Orchid = 0xDA70D6FF,
128  PaleGoldenrod = 0xEEE8AAFF,
129  PaleGreen = 0x98FB98FF,
130  PaleTurquoise = 0xAFEEEEFF,
131  PaleVioletRed = 0xDB7093FF,
132  PapayaWhip = 0xFFEFD5FF,
133  PeachPuff = 0xFFDAB9FF,
134  Peru = 0xCD853FFF,
135  Pink = 0xFFC0CBFF,
136  Plum = 0xDDA0DDFF,
137  PowderBlue = 0xB0E0E6FF,
138  Purple = 0x800080FF,
139  Red = 0xFF0000FF,
140  RosyBrown = 0xBC8F8FFF,
141  RoyalBlue = 0x4169E1FF,
142  SaddleBrown = 0x8B4513FF,
143  Salmon = 0xFA8072FF,
144  SandyBrown = 0xF4A460FF,
145  SeaGreen = 0x2E8B57FF,
146  Seashell = 0xFFF5EEFF,
147  Sienna = 0xA0522DFF,
148  Silver = 0xC0C0C0FF,
149  SkyBlue = 0x87CEEBFF,
150  SlateBlue = 0x6A5ACDFF,
151  SlateGray = 0x708090FF,
152  Snow = 0xFFFAFAFF,
153  SpringGreen = 0x00FF7FFF,
154  SteelBlue = 0x4682B4FF,
155  Tan = 0xD2B48CFF,
156  Teal = 0x008080FF,
157  Thistle = 0xD8BFD8FF,
158  Tomato = 0xFF6347FF,
159  Turquoise = 0x40E0D0FF,
160  Violet = 0xEE82EEFF,
161  Wheat = 0xF5DEB3FF,
162  White = 0xFFFFFFFF,
163  WhiteSmoke = 0xF5F5F5FF,
164  Yellow = 0xFFFF00FF,
165  YellowGreen = 0x9ACD32FF
166  };
167 
174  template<typename T>
176  return basic_color<T>( (unsigned int) name);
177  }
178  }
179 }
180 
181 
182 
183 #endif
A class for RGBA Color handling.
Definition: mn_color.hpp:33
basic_color< T > from_name(const color_name &name)
Create a color from a name.
Definition: mn_colors.hpp:175
color_name
Definition: mn_colors.hpp:26
Definition: mn_allocator_typetraits.hpp:25