Euphoria
colors.h
Go to the documentation of this file.
1 #pragma once
2 
3 
4 namespace eu
5 {
6  // initially based on http://alumni.media.mit.edu/~wad/color/palette.html
7  // pure- colors are values directly from wikipedia
8  // short descriptons/attributes from https://www.creativebloq.com/web-design/12-colours-and-emotions-they-evoke-61515112
9  // longer description from wikipedia
10 
11  enum class NamedColor
12  {
13  // Clean, virtuous, healthy
14  /*
15  White is the lightest color and is achromatic. It is the color of fresh snow,
16  chalk, and milk, and is the opposite of black. White objects fully reflect
17  and scatter all the visible wavelengths of light. White on television and
18  computer screens is created by a mixture of red, blue and green light.
19  */
20  white,
21 
22  // Neutral, formal, gloomy
23  /*
24  Grey or gray is an intermediate color between black and white. It is a
25  neutral color or achromatic color, meaning literally that it is a color
26  "without color," because it can be composed of black and white. It is the
27  color of a cloud-covered sky, of ash and of lead.
28  */
29  light_gray,
30  gray,
31  dark_gray,
32 
33  // Powerful, sophisticated, edgy
34  /*
35  Black is the darkest color, the result of the absence or complete
36  absorption of visible light. It is an achromatic color, literally a color without
37  hue, like white and gray. It is often used symbolically or figuratively to
38  represent darkness, while white represents light.
39  */
40  black,
41 
42  // Passionate, aggressive, important
43  /*
44  Red is the color at the end of the visible spectrum of light, next to orange
45  and opposite violet. It has a dominant wavelength of approximately
46  625–740 nanometres. It is a primary color in the RGB color model and the
47  CMYK color model, and is the complementary color of cyan.
48  */
49  red,
50  pure_red,
51 
52  // Serene, trustworthy, inviting
53  /*
54  Blue is one of the three primary colours of pigments in painting and
55  traditional colour theory, as well as in the RGB colour model. It lies
56  between violet and green on the spectrum of visible light. The eye
57  perceives blue when observing light with a dominant wavelength between
58  approximately 450 and 495 nanometres.
59  */
60  blue,
61  pure_blue,
62  light_blue,
64 
65  /*
66  Cornflower blue is a shade of medium-to-light blue containing relatively
67  little green compared to blue. This hue was one of the favorites of the
68  Dutch painter Johannes Vermeer. The most valuable blue sapphires are
69  called cornflower blue, having a medium-dark violet-blue tone.
70  */
72 
73  // Natural, stable, prosperous
74  /*
75  Green is the color between blue and yellow on the visible spectrum. It is
76  evoked by light which has a dominant wavelength of roughly 495–570 nm.
77  */
78  green,
79  pure_green,
81 
82  // Happy, friendly, warning
83  /*
84  Yellow is the color between orange and green on the spectrum of visible
85  light. It is evoked by light with a dominant wavelength of roughly 570–590 nm.
86  It is a primary color in subtractive color systems, used in painting or
87  color printing.
88  */
89  yellow,
91 
92  // Playful, energetic, cheap
93  /*
94  Orange is the colour between yellow and red on the spectrum of visible
95  light. Human eyes perceive orange when observing light with a dominant
96  wavelength between roughly 585 and 620 nanometres. In painting and
97  traditional colour theory, it is a secondary colour of pigments, created by
98  mixing yellow and red.
99  */
100  orange,
101  pure_orange,
102 
103  // Earthy, sturdy, rustic
104  /*
105  Brown is a composite color. In the CMYK color model used in printing or
106  painting, brown is made by combining red, black, and yellow, or red,
107  yellow, and blue. In the RGB color model used to project colors onto
108  television screens and computer monitors, brown is made by combining
109  red and green, in specific proportions.
110  */
111  brown,
112  pure_brown,
113 
114  // Luxurious, mysterious, romantic
115  /*
116  Purple is a color intermediate between blue and red. It is similar to violet,
117  but unlike violet, which is a spectral color with its own wavelength on the
118  visible spectrum of light, purple is a secondary color made by combining
119  red and blue. The complementary color of purple in the RYB color model
120  is yellow.
121  */
122  purple,
123  pure_purple,
124 
125  // Feminine, young, innocent
126  /*
127  Pink is a pale red color that is named after a flower of the same name. It
128  was first used as a color name in the late 17th century.
129  */
130  pink,
131  pure_pink,
132 
133  // Accentuates surrounding colours
134  /*
135  Beige is variously described as a pale sandy fawn color, a grayish tan, a
136  light-grayish yellowish brown, or a pale to grayish yellow. It takes its
137  name from French, where the word originally meant natural wool that has
138  been neither bleached nor dyed, and hence also the color of natural wool.
139  */
140  pure_beige,
141 
142 
143  /*
144  Tan is a pale tone of brown. The name is derived from tannum (oak bark)
145  used in the tanning of leather.
146  */
147  tan,
148  pure_tan,
149 
150  /*
151  Cyan is a greenish-blue color. It is evoked by light with a predominant wavelength
152  of between 490–520 nm, between the wavelengths of green and blue.
153  */
154  cyan,
155  pure_cyan
156  };
157 
158 
159  // Colors optimized for color-blind individuals
160  // https://www.nature.com/articles/nmeth.1618
161  // renamed to have main color first
162  enum class BangWongPalette
163  {
164  // black
165  black,
166 
167  // orange
168  organge,
169 
170  // sky blue
171  blue_sky,
172 
173  // bluish green
174  green_bluish,
175 
176  // yellow
177  yellow,
178 
179  // blue
180  blue,
181 
182  // vermillion
184 
185  // redish purple
187  };
188 }
Definition: assert.h:90
BangWongPalette
Definition: colors.h:163
NamedColor
Definition: colors.h:12