From a568a2bbf457283717440ecf8711e87db7a4201e Mon Sep 17 00:00:00 2001 From: Vasile Vilvoiu Date: Wed, 20 Oct 2021 21:58:13 +0300 Subject: Add 'hot' and 'inferno' colormaps. Make 'inferno' default. --- src/configuration.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/configuration.cpp') 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 scale(display_opts, "string", "Display scale (default: dBFS,-120,0)", {'s', "scale"}); args::ValueFlag - colormap(display_opts, "string", "Colormap (default: jet)", {'c', "colormap"}); + colormap(display_opts, "string", "Colormap (default: inferno)", {'c', "colormap"}); args::ValueFlag bgcolor(display_opts, "string", "Background color (default: 000000)", {"bg-color"}); args::ValueFlag @@ -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") { -- cgit v1.2.3