ROOT
6.08/07
Reference Guide
tutorials
graphics
diamond.C File Reference
Tutorials
»
Graphics tutorials
Detailed Description
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
.