Logo ROOT  
Reference Guide
crown.C File Reference

Detailed Description

View in nbviewer Open in SWAN Draw crowns.

TCanvas *crown(){
TCanvas *c1 = new TCanvas("c1","c1",400,400);
TCrown *cr1 = new TCrown(.5,.5,.3,.4);
cr1->SetLineStyle(2);
cr1->SetLineWidth(4);
cr1->Draw();
TCrown *cr2 = new TCrown(.5,.5,.2,.3,45,315);
cr2->SetFillColor(38);
cr2->SetFillStyle(3010);
cr2->Draw();
TCrown *cr3 = new TCrown(.5,.5,.2,.3,-45,45);
cr3->SetFillColor(50);
cr3->SetFillStyle(3025);
cr3->Draw();
TCrown *cr4 = new TCrown(.5,.5,.0,.2);
cr4->SetFillColor(4);
cr4->SetFillStyle(3008);
cr4->Draw();
return c1;
}
Author
Olivier Couet

Definition in file crown.C.

TCrown
To draw a Crown.
Definition: TCrown.h:19
TAttFill::SetFillStyle
virtual void SetFillStyle(Style_t fstyle)
Set the fill area style.
Definition: TAttFill.h:39
TEllipse::Draw
virtual void Draw(Option_t *option="")
Draw this ellipse with its current attributes.
Definition: TEllipse.cxx:168
TAttLine::SetLineWidth
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
Definition: TAttLine.h:43
TCanvas
The Canvas class.
Definition: TCanvas.h:23
TAttFill::SetFillColor
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
Definition: TAttFill.h:37
TAttLine::SetLineStyle
virtual void SetLineStyle(Style_t lstyle)
Set the line style.
Definition: TAttLine.h:42
c1
return c1
Definition: legend1.C:41