Macro illustrating how to animate a picture using a Timer.
void anim()
{
f2 =
new TF2(
"f2",
"sin(2*x)*sin(2*y)*[0]",0,pi,0,pi);
}
void Animate()
{
if (!
gROOT->GetListOfCanvases()->FindObject(
"c1"))
return;
phi += 2;
}
- Author
- Rene Brun
Definition in file anim.C.