Re: Custom Colors in TGraph

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Jun 17 1998 - 16:07:35 MEST


Norbert Danneberg wrote:
> 
> Hi rooters,
> 
> in our event-display we would like to use custom colors to visualize the
> energy deposit in our BGO-Wall. The pictures of our BGOs are filled
> TGraph Objects. Can we define a custom palette ranging form blue to red
> and fill the TGraph objects with this custom color palette?.
> 

Look at URL:
   http://root.cern.ch/root/html/TColor.html
for the list of colors available by default.

In your application you can graph->SetFillColor with one of the
predefined colors.
If you need more colors or want to redefine a new color,
create a TColor object for each new color with its RGB values.

Rene Brun



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:34 MET