Lamp-Da 0.1
A compact lantern project
Loading...
Searching...
No Matches
palettes.hpp
Go to the documentation of this file.
1
5#ifndef MODES_PALETTES_H
6#define MODES_PALETTES_H
7
8#include <cmath>
9#include <cstddef>
10#include <cstdint>
11#include <array>
12
14
15namespace lampda::modes::colors {
16
18using PaletteTy = std::array<uint32_t, 16>;
19
33typedef enum
34{
35 // Black Body Radiators
36 // @{
38 Candle = 0xFF9329,
40 Tungsten40W = 0xFFC58F,
42 Tungsten100W = 0xFFD6AA,
44 Halogen = 0xFFF1E0,
46 CarbonArc = 0xFFFAF4,
48 HighNoonSun = 0xFFFFFB,
50 DirectSunlight = 0xFFFFFF,
52 OvercastSky = 0xC9E2FF,
54 ClearBlueSky = 0x409CFF,
55 // @}
56
57 // Gaseous Light Sources
58 // @{
60 WarmFluorescent = 0xFFF4E5,
62 StandardFluorescent = 0xF4FFFA,
64 CoolWhiteFluorescent = 0xD4EBFF,
66 FullSpectrumFluorescent = 0xFFF4F2,
68 GrowLightFluorescent = 0xFFEFF7,
70 BlackLightFluorescent = 0xA700FF,
72 MercuryVapor = 0xD8F7FF,
74 SodiumVapor = 0xFFD1B2,
76 MetalHalide = 0xF2FCFF,
78 HighPressureSodium = 0xFFB74C,
79 // @}
80
84
86typedef enum
87{
88 AliceBlue = 0xF0F8FF,
89 Amethyst = 0x9966CC,
90 AntiqueWhite = 0xFAEBD7,
91 Aqua = 0x00FFFF,
92 Aquamarine = 0x7FFFD4,
93 Azure = 0xF0FFFF,
94 Beige = 0xF5F5DC,
95 Bisque = 0xFFE4C4,
96 Black = 0x000000,
97 BlanchedAlmond = 0xFFEBCD,
98 Blue = 0x0000FF,
99 BlueViolet = 0x8A2BE2,
100 Brown = 0xA52A2A,
101 BurlyWood = 0xDEB887,
102 CadetBlue = 0x5F9EA0,
103 Chartreuse = 0x7FFF00,
104 Chocolate = 0xD2691E,
105 Coral = 0xFF7F50,
106 CornflowerBlue = 0x6495ED,
107 Cornsilk = 0xFFF8DC,
108 Crimson = 0xDC143C,
109 Cyan = 0x00FFFF,
110 DarkBlue = 0x00008B,
111 DarkCyan = 0x008B8B,
112 DarkGoldenrod = 0xB8860B,
113 DarkGray = 0xA9A9A9,
114 DarkGrey = 0xA9A9A9,
115 DarkGreen = 0x006400,
116 DarkKhaki = 0xBDB76B,
117 DarkMagenta = 0x8B008B,
118 DarkOliveGreen = 0x556B2F,
119 DarkOrange = 0xFF8C00,
120 DarkOrchid = 0x9932CC,
121 DarkRed = 0x8B0000,
122 DarkSalmon = 0xE9967A,
123 DarkSeaGreen = 0x8FBC8F,
124 DarkSlateBlue = 0x483D8B,
125 DarkSlateGray = 0x2F4F4F,
126 DarkSlateGrey = 0x2F4F4F,
127 DarkTurquoise = 0x00CED1,
128 DarkViolet = 0x9400D3,
129 DeepPink = 0xFF1493,
130 DeepSkyBlue = 0x00BFFF,
131 DimGray = 0x696969,
132 DimGrey = 0x696969,
133 DodgerBlue = 0x1E90FF,
134 FireBrick = 0xB22222,
135 FloralWhite = 0xFFFAF0,
136 ForestGreen = 0x228B22,
137 Gainsboro = 0xDCDCDC,
138 GhostWhite = 0xF8F8FF,
139 Gold = 0xFFD700,
140 Goldenrod = 0xDAA520,
141 Gray = 0x808080,
142 Grey = 0x808080,
143 Green = 0x008000,
144 GreenYellow = 0xADFF2F,
145 Honeydew = 0xF0FFF0,
146 HotPink = 0xFF69B4,
147 IndianRed = 0xCD5C5C,
148 Indigo = 0x4B0082,
149 Ivory = 0xFFFFF0,
150 Khaki = 0xF0E68C,
151 Lavender = 0xE6E6FA,
152 LavenderBlush = 0xFFF0F5,
153 LawnGreen = 0x7CFC00,
154 LemonChiffon = 0xFFFACD,
155 LightBlue = 0xADD8E6,
156 LightCoral = 0xF08080,
157 LightCyan = 0xE0FFFF,
159 LightGreen = 0x90EE90,
160 LightGrey = 0xD3D3D3,
161 LightPink = 0xFFB6C1,
162 LightSalmon = 0xFFA07A,
163 LightSeaGreen = 0x20B2AA,
164 LightSkyBlue = 0x87CEFA,
165 LightSlateGray = 0x778899,
166 LightSlateGrey = 0x778899,
167 LightSteelBlue = 0xB0C4DE,
168 LightYellow = 0xFFFFE0,
169 Lime = 0x00FF00,
170 LimeGreen = 0x32CD32,
171 Linen = 0xFAF0E6,
172 Magenta = 0xFF00FF,
173 Maroon = 0x800000,
174 MediumAquamarine = 0x66CDAA,
175 MediumBlue = 0x0000CD,
176 MediumOrchid = 0xBA55D3,
177 MediumPurple = 0x9370DB,
178 MediumSeaGreen = 0x3CB371,
179 MediumSlateBlue = 0x7B68EE,
180 MediumSpringGreen = 0x00FA9A,
181 MediumTurquoise = 0x48D1CC,
182 MediumVioletRed = 0xC71585,
183 MidnightBlue = 0x191970,
184 MintCream = 0xF5FFFA,
185 MistyRose = 0xFFE4E1,
186 Moccasin = 0xFFE4B5,
187 NavajoWhite = 0xFFDEAD,
188 Navy = 0x000080,
189 OldLace = 0xFDF5E6,
190 Olive = 0x808000,
191 OliveDrab = 0x6B8E23,
192 Orange = 0xFFA500,
193 OrangeRed = 0xFF4500,
194 Orchid = 0xDA70D6,
195 PaleGoldenrod = 0xEEE8AA,
196 PaleGreen = 0x98FB98,
197 PaleTurquoise = 0xAFEEEE,
198 PaleVioletRed = 0xDB7093,
199 PapayaWhip = 0xFFEFD5,
200 PeachPuff = 0xFFDAB9,
201 Peru = 0xCD853F,
202 Pink = 0xFFC0CB,
203 Plaid = 0xCC5533,
204 Plum = 0xDDA0DD,
205 PowderBlue = 0xB0E0E6,
206 Purple = 0x800080,
207 Red = 0xFF0000,
208 RosyBrown = 0xBC8F8F,
209 RoyalBlue = 0x4169E1,
210 SaddleBrown = 0x8B4513,
211 Salmon = 0xFA8072,
212 SandyBrown = 0xF4A460,
213 SeaGreen = 0x2E8B57,
214 Seashell = 0xFFF5EE,
215 Sienna = 0xA0522D,
216 Silver = 0xC0C0C0,
217 SkyBlue = 0x87CEEB,
218 SlateBlue = 0x6A5ACD,
219 SlateGray = 0x708090,
220 SlateGrey = 0x708090,
221 Snow = 0xFFFAFA,
222 SpringGreen = 0x00FF7F,
223 SteelBlue = 0x4682B4,
224 Tan = 0xD2B48C,
225 Teal = 0x008080,
226 Thistle = 0xD8BFD8,
227 Tomato = 0xFF6347,
228 Turquoise = 0x40E0D0,
229 Violet = 0xEE82EE,
230 Wheat = 0xF5DEB3,
231 White = 0xFFFFFF,
232 WhiteSmoke = 0xF5F5F5,
233 Yellow = 0xFFFF00,
234 YellowGreen = 0x9ACD32,
235
236 // LED RGB color that roughly approximates
237 // the color of incandescent fairy lights,
238 // assuming that you're using FastLED
239 // color correction on your LEDs (recommended).
240 FairyLight = 0xFFE42D,
241
242 // If you are using no color correction, use this
243 FairyLightNCC = 0xFF9D2A
244
246
247//
248// inline palette definitions
249//
250
253 DarkBlue,
254 DarkBlue,
255 DarkBlue,
256 DarkBlue,
257 DarkBlue,
258 DarkBlue,
259 DarkBlue,
260 Blue,
261 DarkBlue,
262 SkyBlue,
263 SkyBlue,
264 LightBlue,
265 White,
266 LightBlue,
267 SkyBlue};
268
271 Maroon,
272 Black,
273 Maroon,
274 DarkRed,
275 Maroon,
276 DarkRed,
277 DarkRed,
278 DarkRed,
279 Red,
280 Orange,
281 White,
282 Orange,
283 Red,
284 DarkRed,
285 Black};
286
289 Orange,
290 Orange,
291 Orange,
292 Orange,
293 Orange,
294 Orange,
295 Orange,
296 Orange,
297 Orange,
298 Orange,
299 Orange,
300 Candle,
301 Orange,
302 Orange,
303 Gold};
304
307 DarkBlue,
309 Navy,
310 DarkBlue,
312 SeaGreen,
313 Teal,
314 CadetBlue,
315 Blue,
316 DarkCyan,
319 SeaGreen,
320 Aqua,
322
325 DarkBlue,
327 Navy,
328 DarkBlue,
331 Teal,
332 CadetBlue,
333 Blue,
334 DarkCyan,
338 Aqua,
340
343 DarkGreen,
345 DarkGreen,
346 Green,
348 OliveDrab,
349 Green,
350 SeaGreen,
352 LimeGreen,
355 LawnGreen,
358
361 0xD52A00,
362 0xAB5500,
363 0xAB7F00,
364 0xABAB00,
365 0x56D500,
366 Lime,
367 0x00D52A,
368 0x00AB55,
369 0x0056AA,
370 Blue,
371 0x2A00D5,
372 0x5500AB,
373 0x7F0081,
374 0xAB0055,
375 0xD5002B};
376
378static constexpr PaletteTy PalettePartyColors = {0x5500AB,
379 0x84007C,
380 0xB5004B,
381 0xE5001B,
382 0xE81700,
383 0xB84700,
384 0xAB7700,
385 0xABAB00,
386 0xAB5500,
387 0xDD2200,
388 0xF2000E,
389 0xC2003E,
390 0x8F0071,
391 0x5F00A1,
392 0x2F00D0,
393 0x0007F9};
394
396static constexpr PaletteTy PaletteBlackBodyColors = {0xE73E05,
397 // 0xff3800, true black body
398 0xff5300,
399 0xff6500,
400 0xff7300,
401 0xff7e00,
402 0xff8912,
403 0xff932c,
404 0xff9d3f,
405 0xffa54f,
406 0xffad5e,
407 0xffb46b,
408 0xffbb78,
409 0xffc184,
410 0xffc78f,
411 0xffcc99,
412 0xffd1a3};
413
416 0x330000,
417 0x660000,
418 0x990000,
419 0xCC0000,
420 Red,
421 0xFF3300,
422 0xFF6600,
423 0xFF9900,
424 0xFFCC00,
425 Yellow,
426 0xFFFF33,
427 0xFFFF66,
428 0xFFFF99,
429 0xFFFFCC};
430
432static constexpr PaletteTy PaletteAuroraColors = {0x000000,
433 0x003300,
434 0x006600,
435 0x009900,
436 0x00cc00,
437 Lime,
438 0x33ff00,
439 0x66ff00,
440 0x99ff00,
441 0xccff00,
442 Yellow,
443 0xffcc00,
444 0xff9900,
445 0xff6600,
446 0xff3300,
447 Red};
448
450static constexpr PaletteTy PalettePapiColors = {
451 Blue, // deep blue
452 0x0F9DE8, // cerulien blue
453 0x2BFAFA, // cyan
454 0x791CF8, // indigo
455 0x9683EC, // lavander
456 Red, // red
457 Yellow, // yellow
458 0xFF7F00, // orange
459 0xE73E05, // corail
460 Magenta, // magenta
461 Lime, // green
462 0x87E990, // jade
463 0x058E8E, // teal
464 0x660099, // violet
465 0xFF007F, // pink
466 White // white
467};
468
470template<uint32_t startColor, uint32_t endColor> static constexpr PaletteTy _gradient_palette_from_color()
471{
472 using ToRGB = modes::colors::ToRGB;
473 constexpr ToRGB start {startColor};
474 constexpr ToRGB end {endColor};
475
476 PaletteTy palette {};
477 constexpr float step = palette.size() - 1;
478 constexpr float dr = (end.r - start.r) / step;
479 constexpr float dg = (end.g - start.g) / step;
480 constexpr float db = (end.b - start.b) / step;
481
482 for (size_t I = 0; I < palette.size(); ++I)
483 {
484 uint8_t r = start.r + (I * dr);
485 uint8_t g = start.g + (I * dg);
486 uint8_t b = start.b + (I * db);
487 palette[I] = modes::colors::fromRGB(r, g, b);
488 }
489
490 return palette;
491}
492
494template<uint32_t startColor, uint32_t endColor> static constexpr PaletteTy PaletteGradient =
495 _gradient_palette_from_color<startColor, endColor>();
496
503template<bool PaletteLoops = true, typename UIntTy = uint8_t>
504static constexpr uint32_t from_palette(UIntTy index, const PaletteTy& palette, uint8_t brightness = 255)
505{
506 // convert to [0; 15] (divide by 16)
507 uint8_t renormIndex = index >> 4;
508 // get least significant part for the blend factor (15 levels + 0)
509 float blendIndex = (index & 0x0F) / 16.0f;
510
511 // support for uint16_t
512 if constexpr (sizeof(UIntTy) > 1)
513 {
514 const float remapedIndex = (index / static_cast<float>(UINT16_MAX)) * 16.f;
515 renormIndex = std::min<uint8_t>(floorf(remapedIndex), 15);
516 blendIndex = remapedIndex - renormIndex;
517 static_assert(std::is_same_v<UIntTy, uint16_t>, "u8 or u16 allowed only");
518 }
519 else
520 {
521 static_assert(std::is_same_v<UIntTy, uint8_t>, "u8 or u16 allowed only");
522 }
523
524 if (renormIndex >= 16)
525 return 0;
526
527 // limit blend index
528 if (blendIndex < 0.0f)
529 blendIndex = 0.0f;
530 if (blendIndex > 1.0f)
531 blendIndex = 1.0f;
532 blendIndex = 1.0f - blendIndex;
533
534 const uint32_t entry = palette[renormIndex];
535
536 // convert to rgb
537 uint8_t red1 = (entry & Red) >> 16;
538 uint8_t green1 = (entry & Lime) >> 8;
539 uint8_t blue1 = entry & Blue;
540
541 // need to blend the palette
542 if (blendIndex > 0)
543 {
544 uint32_t nextColor = 0;
545 if (renormIndex == 15)
546 {
547 nextColor = PaletteLoops ? palette[0] : palette[15];
548 }
549 else
550 {
551 nextColor = palette[1 + renormIndex];
552 }
553
554 const float f1 = blendIndex;
555 const float f2 = 1.0 - blendIndex;
556
557 const uint8_t red2 = (nextColor >> 16) & 0x0000ff;
558 red1 = red1 * f1;
559 red1 += red2 * f2;
560
561 const uint8_t green2 = (nextColor >> 8) & 0x0000ff;
562 green1 = green1 * f1;
563 green1 += green2 * f2;
564
565 const uint8_t blue2 = nextColor & 0x0000ff;
566 blue1 = blue1 * f1;
567 blue1 += blue2 * f2;
568 }
569
570 if (brightness != 255)
571 {
572 if (brightness != 0)
573 {
574 const float adjustedBrightness = (brightness + 1) / 256.0; // adjust for rounding
575 // Now, since brightness is nonzero, we don't need the full scale8_video
576 // logic; we can just to scale8 and then add one (unless scale8 fixed) to
577 // all nonzero inputs.
578 if (red1)
579 {
580 red1 = red1 * adjustedBrightness;
581 ++red1;
582 }
583 if (green1)
584 {
585 green1 = green1 * adjustedBrightness;
586 ++green1;
587 }
588 if (blue1)
589 {
590 blue1 = blue1 * adjustedBrightness;
591 ++blue1;
592 }
593 }
594 else
595 {
596 red1 = 0;
597 green1 = 0;
598 blue1 = 0;
599 }
600 }
601
602 // return color code
603 uint32_t outputColor = red1;
604 outputColor = (outputColor << 8) | green1;
605 outputColor = (outputColor << 8) | blue1;
606 return outputColor;
607}
608
609} // namespace lampda::modes::colors
610
611#endif
Manipulate color representations.
Tools to manipulate colors and their representation.
Definition: gamma.hpp:10
static constexpr PaletteTy PaletteBlackBodyColors
Black body radiation, with the high end changed to be nicer.
Definition: palettes.hpp:396
static constexpr PaletteTy PalettePartyColors
basically, HSV with no green. looks better when lighing people
Definition: palettes.hpp:378
static constexpr uint32_t from_palette(UIntTy index, const PaletteTy &palette, uint8_t brightness=255)
Return a color from a palette.
Definition: palettes.hpp:504
static constexpr PaletteTy PaletteHeatColors
Heat black body.
Definition: palettes.hpp:415
static constexpr PaletteTy PaletteGradient
Return a palette gradient from startColor to endColor.
Definition: palettes.hpp:494
static constexpr PaletteTy PaletteOceanColors
Ocean colors, blues and whites.
Definition: palettes.hpp:306
static constexpr PaletteTy PaletteFlameColors
Fire color palette.
Definition: palettes.hpp:288
ColorTemperature
Color temperature values.
Definition: palettes.hpp:34
@ ClearBlueSky
Definition: palettes.hpp:54
@ HighNoonSun
Definition: palettes.hpp:48
@ HighPressureSodium
Definition: palettes.hpp:78
@ DirectSunlight
Definition: palettes.hpp:50
@ BlackLightFluorescent
Definition: palettes.hpp:70
@ WarmFluorescent
Warm (yellower) flourescent light bulbs.
Definition: palettes.hpp:60
@ GrowLightFluorescent
Definition: palettes.hpp:68
@ MetalHalide
Definition: palettes.hpp:76
@ Candle
1900 Kelvin
Definition: palettes.hpp:38
@ FullSpectrumFluorescent
Definition: palettes.hpp:66
@ Halogen
Definition: palettes.hpp:44
@ UncorrectedTemperature
Uncorrected temperature (0xFFFFFF)
Definition: palettes.hpp:82
@ CarbonArc
Definition: palettes.hpp:46
@ CoolWhiteFluorescent
Definition: palettes.hpp:64
@ MercuryVapor
Definition: palettes.hpp:72
@ Tungsten100W
Definition: palettes.hpp:42
@ StandardFluorescent
Definition: palettes.hpp:62
@ OvercastSky
Definition: palettes.hpp:52
@ Tungsten40W
Definition: palettes.hpp:40
@ SodiumVapor
Definition: palettes.hpp:74
static constexpr PaletteTy PaletteLavaColors
Lava color palette.
Definition: palettes.hpp:270
std::array< uint32_t, 16 > PaletteTy
Palette types.
Definition: palettes.hpp:18
static constexpr PaletteTy PaletteWaterColors
Water colors, blues.
Definition: palettes.hpp:324
static constexpr LMBD_INLINE uint32_t fromRGB(uint8_t r, uint8_t g, uint8_t b)
Return color (r, g, b) as a single uint32_t integer.
Definition: utils.hpp:24
static constexpr PaletteTy PaletteCloudColors
Cloudy color palette/ blue to blue-white.
Definition: palettes.hpp:252
static constexpr PaletteTy PaletteAuroraColors
Palette of green yellow colors.
Definition: palettes.hpp:432
static constexpr PaletteTy PaletteForestColors
Forest colors, greens.
Definition: palettes.hpp:342
static constexpr PaletteTy PaletteRainbowColors
HSV Rainbow.
Definition: palettes.hpp:360
static constexpr PaletteTy PalettePapiColors
Palette of nice handpicked colors.
Definition: palettes.hpp:450
HTMLColorCode
Define common HTML colors.
Definition: palettes.hpp:87
@ LightSteelBlue
Definition: palettes.hpp:167
@ FairyLightNCC
Definition: palettes.hpp:243
@ Purple
Definition: palettes.hpp:206
@ MediumAquamarine
Definition: palettes.hpp:174
@ SteelBlue
Definition: palettes.hpp:223
@ LightGreen
Definition: palettes.hpp:159
@ Tan
Definition: palettes.hpp:224
@ Khaki
Definition: palettes.hpp:150
@ DarkViolet
Definition: palettes.hpp:128
@ Linen
Definition: palettes.hpp:171
@ DarkKhaki
Definition: palettes.hpp:116
@ Pink
Definition: palettes.hpp:202
@ Gray
Definition: palettes.hpp:141
@ Orchid
Definition: palettes.hpp:194
@ Peru
Definition: palettes.hpp:201
@ CadetBlue
Definition: palettes.hpp:102
@ Violet
Definition: palettes.hpp:229
@ LavenderBlush
Definition: palettes.hpp:152
@ LightSeaGreen
Definition: palettes.hpp:163
@ PapayaWhip
Definition: palettes.hpp:199
@ BlanchedAlmond
Definition: palettes.hpp:97
@ Wheat
Definition: palettes.hpp:230
@ LightGrey
Definition: palettes.hpp:160
@ ForestGreen
Definition: palettes.hpp:136
@ MediumPurple
Definition: palettes.hpp:177
@ Brown
Definition: palettes.hpp:100
@ HotPink
Definition: palettes.hpp:146
@ Snow
Definition: palettes.hpp:221
@ Orange
Definition: palettes.hpp:192
@ AntiqueWhite
Definition: palettes.hpp:90
@ PaleGreen
Definition: palettes.hpp:196
@ Cyan
Definition: palettes.hpp:109
@ DarkOliveGreen
Definition: palettes.hpp:118
@ MediumVioletRed
Definition: palettes.hpp:182
@ DarkOrchid
Definition: palettes.hpp:120
@ Salmon
Definition: palettes.hpp:211
@ Beige
Definition: palettes.hpp:94
@ MistyRose
Definition: palettes.hpp:185
@ DarkSlateGrey
Definition: palettes.hpp:126
@ PaleGoldenrod
Definition: palettes.hpp:195
@ DarkSlateGray
Definition: palettes.hpp:125
@ Cornsilk
Definition: palettes.hpp:107
@ DarkGray
Definition: palettes.hpp:113
@ PaleTurquoise
Definition: palettes.hpp:197
@ LimeGreen
Definition: palettes.hpp:170
@ MediumBlue
Definition: palettes.hpp:175
@ Amethyst
Definition: palettes.hpp:89
@ SpringGreen
Definition: palettes.hpp:222
@ IndianRed
Definition: palettes.hpp:147
@ BurlyWood
Definition: palettes.hpp:101
@ LightBlue
Definition: palettes.hpp:155
@ BlueViolet
Definition: palettes.hpp:99
@ SlateGray
Definition: palettes.hpp:219
@ Green
Definition: palettes.hpp:143
@ LightSlateGray
Definition: palettes.hpp:165
@ MintCream
Definition: palettes.hpp:184
@ GreenYellow
Definition: palettes.hpp:144
@ GhostWhite
Definition: palettes.hpp:138
@ LightGoldenrodYellow
Definition: palettes.hpp:158
@ LightSlateGrey
Definition: palettes.hpp:166
@ MediumSlateBlue
Definition: palettes.hpp:179
@ White
Definition: palettes.hpp:231
@ Red
Definition: palettes.hpp:207
@ Tomato
Definition: palettes.hpp:227
@ PeachPuff
Definition: palettes.hpp:200
@ RosyBrown
Definition: palettes.hpp:208
@ Indigo
Definition: palettes.hpp:148
@ Plaid
Definition: palettes.hpp:203
@ LightSkyBlue
Definition: palettes.hpp:164
@ Navy
Definition: palettes.hpp:188
@ WhiteSmoke
Definition: palettes.hpp:232
@ Magenta
Definition: palettes.hpp:172
@ LightCoral
Definition: palettes.hpp:156
@ Turquoise
Definition: palettes.hpp:228
@ Lime
Definition: palettes.hpp:169
@ NavajoWhite
Definition: palettes.hpp:187
@ OldLace
Definition: palettes.hpp:189
@ Goldenrod
Definition: palettes.hpp:140
@ SeaGreen
Definition: palettes.hpp:213
@ LemonChiffon
Definition: palettes.hpp:154
@ Plum
Definition: palettes.hpp:204
@ RoyalBlue
Definition: palettes.hpp:209
@ Lavender
Definition: palettes.hpp:151
@ FireBrick
Definition: palettes.hpp:134
@ LawnGreen
Definition: palettes.hpp:153
@ LightYellow
Definition: palettes.hpp:168
@ Aquamarine
Definition: palettes.hpp:92
@ LightSalmon
Definition: palettes.hpp:162
@ Sienna
Definition: palettes.hpp:215
@ DarkGoldenrod
Definition: palettes.hpp:112
@ Moccasin
Definition: palettes.hpp:186
@ FairyLight
Definition: palettes.hpp:240
@ SlateBlue
Definition: palettes.hpp:218
@ Thistle
Definition: palettes.hpp:226
@ MediumSeaGreen
Definition: palettes.hpp:178
@ MediumOrchid
Definition: palettes.hpp:176
@ MediumTurquoise
Definition: palettes.hpp:181
@ Yellow
Definition: palettes.hpp:233
@ DarkSlateBlue
Definition: palettes.hpp:124
@ SandyBrown
Definition: palettes.hpp:212
@ SkyBlue
Definition: palettes.hpp:217
@ DarkBlue
Definition: palettes.hpp:110
@ AliceBlue
Definition: palettes.hpp:88
@ DeepPink
Definition: palettes.hpp:129
@ Azure
Definition: palettes.hpp:93
@ Gainsboro
Definition: palettes.hpp:137
@ LightPink
Definition: palettes.hpp:161
@ DarkTurquoise
Definition: palettes.hpp:127
@ Teal
Definition: palettes.hpp:225
@ OrangeRed
Definition: palettes.hpp:193
@ Gold
Definition: palettes.hpp:139
@ Blue
Definition: palettes.hpp:98
@ DarkSeaGreen
Definition: palettes.hpp:123
@ FloralWhite
Definition: palettes.hpp:135
@ DarkGreen
Definition: palettes.hpp:115
@ DarkMagenta
Definition: palettes.hpp:117
@ DarkGrey
Definition: palettes.hpp:114
@ DodgerBlue
Definition: palettes.hpp:133
@ Honeydew
Definition: palettes.hpp:145
@ Maroon
Definition: palettes.hpp:173
@ CornflowerBlue
Definition: palettes.hpp:106
@ DarkSalmon
Definition: palettes.hpp:122
@ Black
Definition: palettes.hpp:96
@ PowderBlue
Definition: palettes.hpp:205
@ SlateGrey
Definition: palettes.hpp:220
@ Olive
Definition: palettes.hpp:190
@ Seashell
Definition: palettes.hpp:214
@ Grey
Definition: palettes.hpp:142
@ Silver
Definition: palettes.hpp:216
@ Chocolate
Definition: palettes.hpp:104
@ DimGray
Definition: palettes.hpp:131
@ OliveDrab
Definition: palettes.hpp:191
@ DarkCyan
Definition: palettes.hpp:111
@ LightCyan
Definition: palettes.hpp:157
@ Aqua
Definition: palettes.hpp:91
@ Ivory
Definition: palettes.hpp:149
@ MidnightBlue
Definition: palettes.hpp:183
@ DimGrey
Definition: palettes.hpp:132
@ Chartreuse
Definition: palettes.hpp:103
@ DarkRed
Definition: palettes.hpp:121
@ YellowGreen
Definition: palettes.hpp:234
@ SaddleBrown
Definition: palettes.hpp:210
@ MediumSpringGreen
Definition: palettes.hpp:180
@ DarkOrange
Definition: palettes.hpp:119
@ Coral
Definition: palettes.hpp:105
@ PaleVioletRed
Definition: palettes.hpp:198
@ Crimson
Definition: palettes.hpp:108
@ DeepSkyBlue
Definition: palettes.hpp:130
@ Bisque
Definition: palettes.hpp:95
Exposes (r, g, b) as uint8_t in struct from a single uint32_t color.
Definition: utils.hpp:33