17#include "ROOT/RColor.hxx"
18#include "ROOT/RBox.hxx"
27 auto canvas = RCanvas::Create(
"Canvas Title");
29 auto OptsBox1 = canvas->Draw(RBox({0.1_normal, 0.3_normal}, {0.3_normal,0.6_normal}));
30 RColor Color1(1., 0., 0.);
31 RColor Color2(0., 0., 1.);
33 OptsBox1->SetLineColor(Color1);
34 OptsBox1->SetLineWidth(5);
35 OptsBox1->SetLineColorAlpha(.5);
36 OptsBox1->SetFillColor(Color2);
37 OptsBox1->SetFillColorAlpha(.3);
39 auto OptsBox2 = canvas->Draw(RBox({0.4_normal, 0.2_normal}, {0.6_normal,0.7_normal}));
40 OptsBox2->SetLineColor(Color2);
41 OptsBox2->SetFillStyle(0);
42 OptsBox2->SetLineStyle(2);
43 OptsBox2->SetLineWidth(3);
45 auto OptsBox3 = canvas->Draw(RBox({0.7_normal, 0.4_normal}, {0.9_normal,0.6_normal}));
46 OptsBox3->SetFillStyle(0);
47 OptsBox3->SetRoundWidth(50);
48 OptsBox3->SetRoundHeight(50);
49 OptsBox3->SetLineWidth(3);
51 auto OptsBox4 = canvas->Draw(RBox({0.7_normal, 0.7_normal}, {0.9_normal,0.9_normal}));
52 OptsBox4->SetFillStyle(0);
53 OptsBox4->SetRoundWidth(50);
54 OptsBox4->SetRoundHeight(25);
55 OptsBox4->SetLineWidth(3);
57 auto OptsBox5 = canvas->Draw(RBox({0.7_normal, 0.1_normal}, {0.9_normal,0.3_normal}));
58 OptsBox5->SetFillStyle(0);
59 OptsBox5->SetRoundWidth(25);
60 OptsBox5->SetRoundHeight(50);
61 OptsBox5->SetLineWidth(3);
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)