How to change the color panel for Draw("colz") for TH2 plots?

TColor::InvertPallete was added in version 6.10.00. Unfortunately, it looks like it was not added to the Change log for that version. Using the commit mentioned in the forum topic below you can add the functionality to any version by performing the same reversal if you have the palette. Another unfortunate issue is that TColor::GetPalette was not added until ROOT 6.11.01.

std::reverse(palette.fArray, palette.fArray + palette.GetSize());
TColor::SetPalette(palette);

Forum post for the idea: