Skip to content

Commit 097e30c

Browse files
griffith826Dan Griffith
andauthored
adds chespaeake colormap (#70)
Co-authored-by: Dan Griffith <dan.griffith@ll.mit.edu>
1 parent acd6828 commit 097e30c

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

hydra_visualizer/include/hydra_visualizer/color/colormap_utilities.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ enum class DiscretePalette {
174174
enum class CategoricalPalette {
175175
COLORBREWER,
176176
DISTINCT150,
177+
CHESAPEAKE,
177178
};
178179

179180
/**

hydra_visualizer/src/color/colormap_utilities.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ const std::vector<Color>& lookupColormap(CategoricalPalette cmap) {
5353
switch (cmap) {
5454
case CategoricalPalette::COLORBREWER:
5555
return spark_dsg::colormaps::colorbrewerPalette();
56+
case CategoricalPalette::CHESAPEAKE:
57+
return spark_dsg::colormaps::chesapeakePalette();
5658
case CategoricalPalette::DISTINCT150:
5759
default:
5860
return spark_dsg::colormaps::distinct150Palette();
@@ -211,7 +213,8 @@ void declare_config(CategoricalColormap::Config& config) {
211213
enum_field(config.palette,
212214
"palette",
213215
{{CategoricalPalette::COLORBREWER, "colorbrewer"},
214-
{CategoricalPalette::DISTINCT150, "distinct150"}});
216+
{CategoricalPalette::DISTINCT150, "distinct150"},
217+
{CategoricalPalette::CHESAPEAKE, "chesapeake"}});
215218
field(config.default_color, "default_color");
216219
}
217220

0 commit comments

Comments
 (0)