#include <MRMesh/MRHexPalette.h>
Static Public Member Functions | |
| static Color | colorAtStep (int i) |
| returns the i-th color in stride order, so successive i values give visually distinct colors | |
Static Public Attributes | |
| static constexpr int | CORNER_COLORS = 6 |
| static constexpr int | SIDE_COLORS = 5 |
| static constexpr int | N = CORNER_COLORS * SIDE_COLORS |
| num colors between two corner colors + 1 | |
| static constexpr int | STEP = 17 |
| recommended step from previous color to next color, to have big visual difference, and visit all colors in long run | |
| static const std::array< Color, N > | colors |
| the palette colors, populated at compile time | |
all colors here are on cube's boundary intersected by a skew plane, which makes a hexagon; gives visually distinct categorical colors for things like mesh segments or imported components