20 using namespace ROOT::Experimental;
36 throw std::runtime_error(
"This color does not represent a palette ordinal!");
43 throw std::runtime_error(
"This color does not represent a palette ordinal!");
static constexpr PredefinedRGB kGreen
static constexpr Alpha kOpaque
An opaque color.
static constexpr Alpha kTransparent
A completely transparent color.
std::array< float, 3 > PredefinedRGB
float fRedOrPalettePos
The "R" in RGBA (0 <= R <= 1), or the palette pos if fKind is kPalettePos.
bool AssertNotPalettePos() const
throw an exception if the color isn't specified as kRGBA or kAuto, the two cases where asking for RBG...
The color is defined as a value in the TFrame's TPalette.
static constexpr PredefinedRGB kBlack
static constexpr AutoTag kAuto
static constexpr PredefinedRGB kBlue
static constexpr PredefinedRGB kRed
static constexpr PredefinedRGB kWhite
EKind fKind
How the color is defined.
float GetPaletteOrdinal() const
If this is an ordinal in a palette, resolve the.