1 void bright_colors(Float_t value=1)
4 // you can store the original colors by creating a clone of
5 // (TObjArray*)gROOT->GetListOfColors() and restore the colors by
6 // assigning the vector with original values to the list of colors
11 printf("Value %f too high - maximum is 5.\n", value);
16 TObjArray *colors = (TObjArray*) gROOT->GetListOfColors();
19 for (int i = 0; i < colors->GetSize(); ++i)
21 if ((color = dynamic_cast<TColor*>(colors->At(i))) != 0)
23 color->GetRGB(r, g, b);
24 if (r < 0.01 && g < 0.01 && b < 0.01) continue; // skip black
25 if (r > 0.95 && g > 0.95 && b > 0.95) continue; // skip white
26 r = TMath::Min(r + value, 1.0f);
27 g = TMath::Min(g + value, 1.0f);
28 b = TMath::Min(b + value, 1.0f);
29 color->SetRGB(r, g, b);