Support display of range folded values

This commit is contained in:
Dan Paulat 2021-11-13 21:24:17 -06:00
parent 73d2b8323b
commit e58b1f5b57
3 changed files with 28 additions and 13 deletions

View file

@ -70,6 +70,11 @@ ColorTable::~ColorTable() = default;
ColorTable::ColorTable(ColorTable&&) noexcept = default;
ColorTable& ColorTable::operator=(ColorTable&&) noexcept = default;
boost::gil::rgba8_pixel_t ColorTable::rf_color() const
{
return p->rfColor_;
}
boost::gil::rgba8_pixel_t ColorTable::Color(float value) const
{
boost::gil::rgba8_pixel_t color;
@ -198,7 +203,7 @@ void ColorTable::ProcessLine(const std::vector<std::string>& tokenList)
// Step: number
p->step_ = std::stol(tokenList[1]);
}
else if (tokenList[0] == "RF")
else if (tokenList[0] == "RF:")
{
// RF: R G B [A]
p->rfColor_ = ParseColor(tokenList, 1, p->colorMode_);