How to pass a TString as a TColor?

Dear ROOTers,

I have in a text file a list of histograms, and for each a dedicated color given for instance by “kYellow-3”.

If I want to retrieve this color from the tex file as a string
TString color;

and then use it for the histogram:
hist->SetFillColor( color );

that is refused. Is there a way to pass a TString as a TColor ?

Thanks in advance,

cheers,
Xavier

Hi Xavier,

Try this way:

Cheers, Bertrand.

Thanks, that is exactly what I needed.
Cheers,
Xavier