ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
crown.C
Go to the documentation of this file.
1 /// \file
2 /// \ingroup tutorial_graphics
3 /// Draw crowns.
4 ///
5 /// \macro_image
6 /// \macro_code
7 ///
8 /// \author Olivier Couet
9 
10 TCanvas *crown(){
11  TCanvas *c1 = new TCanvas("c1","c1",400,400);
12  TCrown *cr1 = new TCrown(.5,.5,.3,.4);
13  cr1->SetLineStyle(2);
14  cr1->SetLineWidth(4);
15  cr1->Draw();
16  TCrown *cr2 = new TCrown(.5,.5,.2,.3,45,315);
17  cr2->SetFillColor(38);
18  cr2->SetFillStyle(3010);
19  cr2->Draw();
20  TCrown *cr3 = new TCrown(.5,.5,.2,.3,-45,45);
21  cr3->SetFillColor(50);
22  cr3->SetFillStyle(3025);
23  cr3->Draw();
24  TCrown *cr4 = new TCrown(.5,.5,.0,.2);
25  cr4->SetFillColor(4);
26  cr4->SetFillStyle(3008);
27  cr4->Draw();
28  return c1;
29 }
virtual void SetLineWidth(Width_t lwidth)
Definition: TAttLine.h:57
To draw a Crown.
Definition: TCrown.h:30
TCanvas * c1
Definition: legend1.C:2
virtual void SetFillStyle(Style_t fstyle)
Definition: TAttFill.h:52
virtual void Draw(Option_t *option="")
Draw this ellipse with its current attributes.
Definition: TEllipse.cxx:167
virtual void SetFillColor(Color_t fcolor)
Definition: TAttFill.h:50
The Canvas class.
Definition: TCanvas.h:48
virtual void SetLineStyle(Style_t lstyle)
Definition: TAttLine.h:56