Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
diamond.C
Go to the documentation of this file.
1 /// \file
2 /// \ingroup tutorial_graphics
3 /// \notebook
4 /// Draw a diamond.
5 ///
6 /// \macro_image
7 /// \macro_code
8 ///
9 /// \author Olivier Couet
10 
11 TCanvas *diamond(){
12  TCanvas *c = new TCanvas("c");
13  TDiamond *d = new TDiamond(.05,.1,.95,.8);
14 
15  d->AddText("A TDiamond can contain any text.");
16 
17  d->Draw();
18  return c;
19 }