ROOT
master
Reference Guide
Loading...
Searching...
No Matches
crown.C
Go to the documentation of this file.
1
/// \file
2
/// \ingroup tutorial_graphics
3
/// \notebook
4
/// Draw crowns.
5
///
6
/// \macro_image
7
/// \macro_code
8
///
9
/// \author Olivier Couet
10
11
void
crown()
12
{
13
auto
c1
=
new
TCanvas
(
"c1"
,
"c1"
, 400, 400);
14
auto
cr1 =
new
TCrown
(.5, .5, .3, .4);
15
cr1->SetLineStyle(
kDashed
);
16
cr1->SetLineWidth(4);
17
cr1->Draw();
18
auto
cr2 =
new
TCrown
(.5, .5, .2, .3, 45, 315);
19
cr2->SetFillColor(38);
20
cr2->SetFillStyle(3010);
21
cr2->Draw();
22
auto
cr3 =
new
TCrown
(.5, .5, .2, .3, -45, 45);
23
cr3->SetFillColor(50);
24
cr3->SetFillStyle(3025);
25
cr3->Draw();
26
auto
cr4 =
new
TCrown
(.5, .5, .0, .2);
27
cr4->SetFillColor(4);
28
cr4->SetFillStyle(3008);
29
cr4->Draw();
30
}
kDashed
@ kDashed
Definition
TAttLine.h:48
TCanvas
The Canvas class.
Definition
TCanvas.h:23
TCrown
To draw a Crown.
Definition
TCrown.h:19
c1
return c1
Definition
legend1.C:41
tutorials
visualisation
graphics
crown.C
ROOT master - Reference Guide Generated on Thu Dec 19 2024 09:47:24 (GVA Time) using Doxygen 1.9.8