ROOT logo

From $ROOTSYS/tutorials/graphics/crown.C

//Draw crowns
//Author: Olivier Couet
{
   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;
}
 crown.C:1
 crown.C:2
 crown.C:3
 crown.C:4
 crown.C:5
 crown.C:6
 crown.C:7
 crown.C:8
 crown.C:9
 crown.C:10
 crown.C:11
 crown.C:12
 crown.C:13
 crown.C:14
 crown.C:15
 crown.C:16
 crown.C:17
 crown.C:18
 crown.C:19
 crown.C:20
 crown.C:21
 crown.C:22
 crown.C:23