#includeThis example creates a legend with a header and sets the shadow color to red. Since TLegend is a class in ROOT package, it uses ROOT library for its implementation.void SetLegendShadowColor() { TLegend *legend = new TLegend(0.5, 0.5, 0.85, 0.85); legend->SetFillColor(0); legend->SetHeader("Legend Title"); legend->SetShadowColor(kRed); // Setting shadow color to red legend->Draw(); }