Hi everybody
I found the TColor documentation (root.cern.ch/root/html/TColor.html) to be rather confusing, at least the part about bright and dark colors.
For one thing, the lines
TColor *dark = TColor::GetColorDark(color_index);
TColor *bright = TColor::GetColorBright(color_index);
won’t compile for, say, color_index = kRed. Then, the text suggests that I could use something like myBox->SetFillColor(kRed+100);
to obtain the dark version of “kRed”. But that’s not the case. What really works for me is myBox->SetFillColor(TColor::GetColorDark(kRed));
I would update the documentation accordingly to spare other users the confusion.
Thanks,
Thomas