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.
The color is defined as a value in the TFrame's TPalette.
bool AssertNotPalettePos() const
throw an exception if the color isn't specified as kRGBA or kAuto, the two cases where asking for RBG...
static constexpr PredefinedRGB kBlack
static constexpr AutoTag kAuto
static constexpr PredefinedRGB kBlue
static constexpr PredefinedRGB kRed
float GetPaletteOrdinal() const
If this is an ordinal in a palette, resolve the.
static constexpr PredefinedRGB kWhite
EKind fKind
How the color is defined.