summaryrefslogtreecommitdiff
path: root/src/configuration.cpp
diff options
context:
space:
mode:
authorVasile Vilvoiu <vasi@vilvoiu.ro>2021-10-20 21:58:13 +0300
committerVasile Vilvoiu <vasi@vilvoiu.ro>2021-10-20 21:58:13 +0300
commita568a2bbf457283717440ecf8711e87db7a4201e (patch)
treecf491c9d08b7355d241b0e79a5f3de9a2dc80eb3 /src/configuration.cpp
parentd445fd00976fa3ce7ce2eda4d18e9b489a78aa67 (diff)
Add 'hot' and 'inferno' colormaps.
Make 'inferno' default.
Diffstat (limited to 'src/configuration.cpp')
-rw-r--r--src/configuration.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp
index 00e6bdd..7fdcdb5 100644
--- a/src/configuration.cpp
+++ b/src/configuration.cpp
@@ -41,7 +41,7 @@ Configuration::Configuration()
this->scale_unit_ = "FS";
this->scale_lower_bound_ = -120.0f;
this->scale_upper_bound_ = 0.0f;
- this->color_map_ = ColorMapType::kJet;
+ this->color_map_ = ColorMapType::kInferno;
this->background_color_ = sf::Color(0, 0, 0);
this->foreground_color_ = sf::Color(255, 255, 255);
this->has_axes_ = false;
@@ -196,7 +196,7 @@ Configuration::Build(int argc, const char **argv)
args::ValueFlag<std::string>
scale(display_opts, "string", "Display scale (default: dBFS,-120,0)", {'s', "scale"});
args::ValueFlag<std::string>
- colormap(display_opts, "string", "Colormap (default: jet)", {'c', "colormap"});
+ colormap(display_opts, "string", "Colormap (default: inferno)", {'c', "colormap"});
args::ValueFlag<std::string>
bgcolor(display_opts, "string", "Background color (default: 000000)", {"bg-color"});
args::ValueFlag<std::string>
@@ -429,6 +429,10 @@ Configuration::Build(int argc, const char **argv)
conf.color_map_ = ColorMapType::kGray;
} else if (cmap_str == "jet") {
conf.color_map_ = ColorMapType::kJet;
+ } else if (cmap_str == "hot") {
+ conf.color_map_ = ColorMapType::kHot;
+ } else if (cmap_str == "inferno") {
+ conf.color_map_ = ColorMapType::kInferno;
} else if (cmap_str == "purple") {
conf.color_map_ = ColorMapType::kPurple;
} else if (cmap_str == "blue") {