Lightgraph
C++17 light-graph engine API reference
Loading...
Searching...
No Matches
palette_names.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstddef>
4#include <cstdint>
5
12
13inline constexpr const char* kPredefinedPaletteNames[] = {
14 "Sunset Real",
15 "ES Rivendell",
16 "Ocean Breeze",
17 "RGI 15",
18 "Retro 2",
19 "Analogous 1",
20 "Pink Splash 08",
21 "Coral Reef",
22 "Ocean Breeze 068",
23 "Pink Splash 07",
24 "Vintage 01",
25 "Departure",
26 "Landscape 64",
27 "Landscape 33",
28 "Rainbow Sherbet",
29 "Green Hult 65",
30 "Green Hult 64",
31 "Dry Wet",
32 "July 01",
33 "Vintage 57",
34 "IB 15",
35 "Fuschia 7",
36 "Emerald Dragon",
37 "Lava",
38 "Fire",
39 "Colorful",
40 "Magenta Evening",
41 "Pink Purple",
42 "Autumn 19",
43 "Black Blue Magenta White",
44 "Black Magenta Red",
45 "Black Red Magenta Yellow",
46 "Blue Cyan Yellow",
47};
48
49inline constexpr uint8_t predefinedPaletteNameCount() {
50 return static_cast<uint8_t>(sizeof(kPredefinedPaletteNames) / sizeof(kPredefinedPaletteNames[0]));
51}
52
53inline constexpr const char* predefinedPaletteNameAt(uint8_t index) {
54 const uint8_t count = predefinedPaletteNameCount();
55 if (count == 0) {
56 return "";
57 }
58 return kPredefinedPaletteNames[index % count];
59}
60
61} // namespace lightgraph::integration
constexpr const char * predefinedPaletteNameAt(uint8_t index)
constexpr uint8_t predefinedPaletteNameCount()
constexpr const char * kPredefinedPaletteNames[]