TH1F* hist = new TH1F("hist", "Histogram", 10, 0, 10); hist->SetFillColor(kBlue);
TH1F* hist = new TH1F("hist", "Histogram", 10, 0, 10); hist->SetFillColor(255, 0, 0);In this example, we create a new histogram with 10 bins and a range from 0 to 10. The SetFillColor function is used to set the fill color for the histogram bars to red, which is represented by the RGB values (255, 0, 0). These examples use the ROOT package library.