CreateGradientColorTable in 5.24/00

Hello,

in an earlier posting I found this example code:

{
TCanvas c = new TCanvas(“c”,“Contours”,600,0,600,600);
TF2 f1 = new TF2(“f2”,"0.1+(1-(x-2)(x-2))
(1-(y-2)*(y-2))",1,3,1,3);
UInt_t Number = 3;
Double_t Red[Number] = { 1.00, 0.00, 0.00};
Double_t Green[Number] = { 0.00, 1.00, 0.00};
Double_t Blue[Number] = { 1.00, 0.00, 1.00};
Double_t Stops[Number] = { 0.00, 0.50, 1.00 };
Int_t nb = 50;
Int_t i=gStyle->CreateGradientColorTable(Number,Stops,Red,Green,Blue,nb);
f2->SetContour(nb);
f2->Draw(“colz”);
}

What has to be changed, that it also works with version 5.24/00 ?

Thanks in advance!

change

Int_t i=gStyle->CreateGradientColorTable(Number,Stops,Red,Green,Blue,nb);

to

Int_t i=TColor::CreateGradientColorTable(Number,Stops,Red,Green,Blue,nb);

root.cern.ch/drupal/content/how- … or-palette