int Int_t
Signed integer 4 bytes (int).
unsigned char UChar_t
Unsigned Character 1 byte (unsigned char).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
unsigned long ULong_t
Unsigned long integer 4 bytes (unsigned long). Size depends on architecture.
bool Bool_t
Boolean (0=false, 1=true) (bool).
double Double_t
Double 8 bytes.
float Float_t
Float 4 bytes (float).
const char Option_t
Option string (const char).
#define ClassDefOverride(name, id)
@ kInvertedDarkBodyRadiator
Array of integers (32 bits per element).
Int_t fNumber
Color number identifier.
TColorNumber(std::string const &color)
TColorNumber(const char *color)
TColorNumber(Int_t color)
TColorNumber(std::array< Float_t, 3 > rgb)
static Int_t GetColorTransparent(Int_t color, Float_t a)
void Print(Option_t *option="") const override
This method must be overridden when a class wants to print itself.
static void SetPalette(Int_t ncolors, Int_t *colors, Float_t alpha=1.)
Float_t fSaturation
Saturation.
static Int_t GetColorDark(Int_t color)
static void RGBtoHLS(Float_t r, Float_t g, Float_t b, Float_t &h, Float_t &l, Float_t &s)
static Int_t GetRadialGradient(Double_t r, const std::vector< Int_t > &colors, const std::vector< Double_t > &positions={})
virtual void GetRGB(Float_t &r, Float_t &g, Float_t &b) const
void ls(Option_t *option="") const override
The ls function lists the contents of a class on stdout.
TColor(Float_t r, Float_t g, Float_t b, Float_t a=1)
static Bool_t DefinedColors(Int_t set_always_on=0)
static Int_t GetColor(Int_t r, Int_t g, Int_t b, Float_t a=1.)
static Int_t GetColorBright(Int_t color)
static Int_t GetFreeColorIndex()
static Int_t GetLinearGradient(Double_t angle, const std::vector< Int_t > &colors, const std::vector< Double_t > &positions={})
static Int_t GetColor(const char *hexcolor)
static void CreateColorsRectangle(Int_t offset, const char *name, UChar_t *rgb)
static Float_t HLStoRGB1(Float_t rn1, Float_t rn2, Float_t huei)
Float_t fAlpha
Alpha (transparency).
void Copy(TObject &color) const override
Copy this to obj.
static Int_t GetFirstFreeColorIndex()
static void SetGrayscale(Bool_t set=kTRUE)
static Int_t GetColor(Float_t r, Float_t g, Float_t b, Float_t a=1.)
static void SaveColorsPalette(std::ostream &out)
static void SetColorThreshold(Float_t t)
virtual void GetHLS(Float_t &h, Float_t &l, Float_t &s) const
static void InitializeColors()
void SetName(const char *name) override
Set the name of the TNamed.
static const char * PixelAsHexString(ULong_t pixel)
static void CreateColorWheel()
static Int_t GetColor(ULong_t pixel)
static void HLS2RGB(Int_t h, Int_t l, Int_t s, Int_t &r, Int_t &g, Int_t &b)
const char * AsHexString() const
static void HSV2RGB(Float_t h, Float_t s, Float_t v, Float_t &r, Float_t &g, Float_t &b)
static Int_t GetNumberOfColors()
static void CreateColorsGray()
static ULong_t RGB2Pixel(Float_t r, Float_t g, Float_t b)
Float_t fGreen
Fraction of Green.
TColor & operator=(const TColor &color)
TColor(const TColor &color)
static void HLS2RGB(Float_t h, Float_t l, Float_t s, Float_t &r, Float_t &g, Float_t &b)
Float_t GetSaturation() const
static Int_t GetColorPalette(Int_t i)
static void HLStoRGB(Float_t h, Float_t l, Float_t s, Float_t &r, Float_t &g, Float_t &b)
Int_t fNumber
Color number identifier.
static void RGB2HLS(Int_t r, Int_t g, Int_t b, Int_t &h, Int_t &l, Int_t &s)
static void RGB2HSV(Float_t r, Float_t g, Float_t b, Float_t &h, Float_t &s, Float_t &v)
static void ListColors(Int_t ci1=0, Int_t ci2=0, Bool_t showEmpty=kFALSE)
static void Pixel2RGB(ULong_t pixel, Int_t &r, Int_t &g, Int_t &b)
Float_t fBlue
Fraction of Blue.
static void CreateColorsCircle(Int_t offset, const char *name, UChar_t *rgb)
static const TArrayI & GetPalette()
static TString SavePrimitiveColor(Int_t ci)
virtual void SetAlpha(Float_t a)
virtual Float_t GetGrayscale() const
static ULong_t RGB2Pixel(Int_t r, Int_t g, Int_t b)
static void Pixel2RGB(ULong_t pixel, Float_t &r, Float_t &g, Float_t &b)
Float_t fRed
Fraction of Red.
static Int_t CreateColorTableFromFile(TString fileName, Float_t alpha=1.)
static void InvertPalette()
static Bool_t IsGrayscale()
TColor(Int_t color, Float_t r, Float_t g, Float_t b, const char *name="", Float_t a=1)
static Bool_t SaveColor(std::ostream &out, Int_t ci)
static void RGB2HLS(Float_t r, Float_t g, Float_t b, Float_t &h, Float_t &l, Float_t &s)
virtual void SetRGB(Float_t r, Float_t g, Float_t b)
static Int_t GetColorByName(const char *colorname)
static ULong_t Number2Pixel(Int_t ci)
static Int_t CreateGradientColorTable(UInt_t Number, Double_t *Stops, Double_t *Red, Double_t *Green, Double_t *Blue, UInt_t NColors, Float_t alpha=1., Bool_t setPalette=kTRUE)
TObject()
TObject constructor.