mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 20:10:06 +00:00
Support display of range folded values
This commit is contained in:
parent
73d2b8323b
commit
e58b1f5b57
3 changed files with 28 additions and 13 deletions
|
|
@ -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_);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue