static void HSV2RGB(Float_t h, Float_t s, Float_t v, Float_t &r, Float_t &g, Float_t &b)
Static method to compute RGB from HSV:
Float_t fBlue
Fraction of Blue.
virtual void SetAlpha(Float_t a)
static void SetColorThreshold(Float_t t)
This method specifies the color threshold used by GetColor to retrieve a color.
static Bool_t IsGrayscale()
Return whether all colors return grayscale values.
virtual Float_t GetGrayscale() const
static const TArrayI & GetPalette()
Static function returning the current active palette.
static Int_t GetColorDark(Int_t color)
Static function: Returns the dark color number corresponding to n If the TColor object does not exist...
static void SaveColor(std::ostream &out, Int_t ci)
Save a color with index > 228 as a C++ statement(s) on output stream out.
static Int_t GetFreeColorIndex()
Static function: Returns a free color index which can be used to define a user custom color...
static void RGB2HSV(Float_t r, Float_t g, Float_t b, Float_t &h, Float_t &s, Float_t &v)
Static method to compute HSV from RGB.
static Int_t GetNumberOfColors()
Static function returning number of colors in the color palette.
static void HLStoRGB(Float_t h, Float_t l, Float_t s, Float_t &r, Float_t &g, Float_t &b)
virtual void GetRGB(Float_t &r, Float_t &g, Float_t &b) const
static Bool_t DefinedColors()
Static function returning kTRUE if some new colors have been defined after initialisation or since th...
Array of integers (32 bits per element).
Float_t fAlpha
Alpha (transparency)
static void SetPalette(Int_t ncolors, Int_t *colors, Float_t alpha=1.)
Static function.
static const char * PixelAsHexString(ULong_t pixel)
Convert machine dependent pixel value (obtained via RGB2Pixel or via Number2Pixel() or via TColor::Ge...
static Int_t GetColorPalette(Int_t i)
Static function returning the color number i in current palette.
#define ClassDef(name, id)
The TNamed class is the base class for all named ROOT classes.
Float_t fGreen
Fraction of Green.
virtual void GetHLS(Float_t &h, Float_t &l, Float_t &s) const
static ULong_t RGB2Pixel(Int_t r, Int_t g, Int_t b)
Convert r,g,b to graphics system dependent pixel value.
virtual void Print(Option_t *option="") const
Dump this color with its attributes.
virtual ~TColor()
Color destructor.
static void RGB2HLS(Float_t r, Float_t g, Float_t b, Float_t &h, Float_t &l, Float_t &s)
Static method to compute HLS from RGB.
void Copy(TObject &color) const
Copy this color to obj.
static void RGBtoHLS(Float_t r, Float_t g, Float_t b, Float_t &h, Float_t &l, Float_t &s)
static void HLS2RGB(Float_t h, Float_t l, Float_t s, Float_t &r, Float_t &g, Float_t &b)
Static method to compute RGB from HLS.
static Int_t GetColorBright(Int_t color)
Static function: Returns the bright color number corresponding to n If the TColor object does not exi...
static void InvertPalette()
Invert the current color palette.
Float_t GetSaturation() const
Float_t fSaturation
Saturation.
static void CreateColorsRectangle(Int_t offset, const char *name, UChar_t *rgb)
Create the "rectangular" colors in the color wheel.
ULong_t GetPixel() const
Return pixel value corresponding to this color.
static Int_t GetColor(const char *hexcolor)
Static method returning color number for color specified by hex color string of form: "#rrggbb"...
TColor()
Default constructor.
static Int_t GetColorTransparent(Int_t color, Float_t a)
Static function: Returns the transparent color number corresponding to n.
Int_t fNumber
Color number identifier.
static void CreateColorWheel()
Static function steering the creation of all colors in the color wheel.
static ULong_t Number2Pixel(Int_t ci)
Static method that given a color index number, returns the corresponding pixel value.
static void CreateColorsGray()
Create the Gray scale colors in the Color Wheel.
virtual void SetRGB(Float_t r, Float_t g, Float_t b)
Initialize this color and its associated colors.
static constexpr double s
The color creation and management class.
Float_t fRed
Fraction of Red.
Mother of all ROOT objects.
static void SetGrayscale(Bool_t set=kTRUE)
Set whether all colors should return grayscale values.
static void CreateColorsCircle(Int_t offset, const char *name, UChar_t *rgb)
Create the "circle" colors in the color wheel.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
virtual void ls(Option_t *option="") const
List this color with its attributes.
static void InitializeColors()
Initialize colors used by the TCanvas based graphics (via TColor objects).
void Allocate()
Make this color known to the graphics system.
const char * AsHexString() const
Return color as hexadecimal string.
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.)
Static function creating a color table with several connected linear gradients.
static Float_t HLStoRGB1(Float_t rn1, Float_t rn2, Float_t huei)
Static method. Auxiliary to HLS2RGB().
static void Pixel2RGB(ULong_t pixel, Int_t &r, Int_t &g, Int_t &b)
Convert machine dependent pixel value (obtained via RGB2Pixel or via Number2Pixel() or via TColor::Ge...