18#include "ROOT/RCanvas.hxx"
20#include "ROOT/RBox.hxx"
29 auto canvas = RCanvas::Create(
"Canvas Title");
31 auto OptsBox1 = canvas->Draw(RBox({0.1_normal, 0.3_normal}, {0.3_normal,0.6_normal}));
32 RColor Color1(1., 0., 0., 0.5);
33 RColor Color2(0., 0., 1., 0.3);
35 OptsBox1->Border().SetColor(Color1).SetWidth(5);
38 auto OptsBox2 = canvas->Draw(RBox({0.4_normal, 0.2_normal}, {0.6_normal,0.7_normal}));
39 OptsBox2->Border().SetColor(Color2).SetStyle(2).SetWidth(3);
42 auto OptsBox3 = canvas->Draw(RBox({0.7_normal, 0.4_normal}, {0.9_normal,0.6_normal}));
46 OptsBox3->Border().SetWidth(3);
48 auto OptsBox4 = canvas->Draw(RBox({0.7_normal, 0.7_normal}, {0.9_normal,0.9_normal}));
52 OptsBox4->Border().SetWidth(3);
54 auto OptsBox5 = canvas->Draw(RBox({0.7_normal, 0.1_normal}, {0.9_normal,0.3_normal}));
58 OptsBox5->Border().SetWidth(3);
#define R__LOAD_LIBRARY(LIBRARY)
A color: Red|Green|Blue|Alpha, or a position in a RPalette.
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)