Dear rooters, how can I get the 50 RGB triplette values back into an array? (I need to create this same palette for another application decoupled from root).
If I try
gStyle->SetPalette(1,0) ;
for (int i=0; i< 50; i++) {
int icol = gStyle->GetColorPalette(i);
cout << icol << endl ;
}
I get the internal representation of the RGB values (numbers from 51 to 100), while I need instead the corresponding triplet for each color.
The source of SetPalette doesn’t help much either for the same reason (color codes are in internal representation)
Thanks, Dario