Logo ROOT  
Reference Guide
diamond.C File Reference

Detailed Description

View in nbviewer Open in SWAN Draw a diamond.

TCanvas *diamond(){
TCanvas *c = new TCanvas("c");
TDiamond *d = new TDiamond(.05,.1,.95,.8);
d->AddText("A TDiamond can contain any text.");
d->Draw();
return c;
}
Author
Olivier Couet

Definition in file diamond.C.

c
#define c(i)
Definition: RSha256.hxx:119
TDiamond
Definition: TDiamond.h:17
TCanvas
Definition: TCanvas.h:23
d
#define d(i)
Definition: RSha256.hxx:120