6 #include "RtypesCore.h" 10 Palette(
const std::string &file,
11 const std::string &palette);
12 explicit Palette(
const std::string &palette =
"default");
19 const std::string &
File()
const;
25 const std::string &palette);
27 Int_t
operator()(
const std::string &color_name)
const;
29 static Int_t
RGB(Int_t r, Int_t g, Int_t b);
30 static Int_t
RGB(Float_t r, Float_t g, Float_t b);
32 static Int_t
HSV(Float_t h, Float_t s, Float_t v);
34 static Int_t
HLS(Int_t h, Int_t l, Int_t s);
35 static Int_t
HLS(Float_t h, Float_t l, Float_t s);
Int_t operator()(const std::string &color_name) const
Gets the ROOT color number corresponding to a color in the configuration file.
const std::string & PaletteName() const
Get the name of the palette from which colors are read.
std::string palette_
Palette name from which to read color definitions.
const std::string & File() const
Get the file from which colors are read.
std::string file_
File from which to read color definitions.
static Int_t RGB(Int_t r, Int_t g, Int_t b)
Gets the ROOT color number corresponding to a given RGB color.
Palette(const std::string &file, const std::string &palette)
Construct from file and palette names.
Palette & operator=(const Palette &)=default
static Int_t HLS(Int_t h, Int_t l, Int_t s)
Gets the ROOT color number corresponding to a given HLS/HSL color.
static Int_t HSV(Float_t h, Float_t s, Float_t v)
Gets the ROOT color number corresponding to a given HSV color.
Loads colors from a text configuration file.