12 #include "ROOT/TColor.hxx" 13 #include "ROOT/TLine.hxx" 24 for (
double i = 0; i < 360; i+=1) {
28 auto opts = canvas->Draw(Experimental::TLine({0.5_normal, 0.5_normal} , p));
29 Experimental::TColor col(0.0025*i, 0, 0);
30 opts->SetLineColor(col);
31 opts->SetLineWidth(1);
34 canvas->Draw(Experimental::TLine({0.0_normal, 0.0_normal}, {1.0_normal,1.0_normal}));
35 canvas->Draw(Experimental::TLine({0.1_normal, 0.1_normal}, {0.9_normal,0.1_normal}));
36 canvas->Draw(Experimental::TLine({0.9_normal, 0.1_normal}, {0.9_normal,0.9_normal}));
37 canvas->Draw(Experimental::TLine({0.9_normal, 0.9_normal}, {0.1_normal,0.9_normal}));
38 canvas->Draw(Experimental::TLine({0.1_normal, 0.1_normal}, {0.1_normal,0.9_normal}));
39 canvas->Draw(Experimental::TLine({0.0_normal, 1.0_normal}, {1.0_normal,0.0_normal}));
Namespace for new ROOT classes and functions.
A position (horizontal and vertical) in a TPad.
static std::shared_ptr< TCanvas > Create(const std::string &title)