Re: Custom Colors in TGraph
Rene Brun (Rene.Brun@cern.ch)
Wed, 17 Jun 1998 16:07:35 +0200
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