20 gStyle->SetCanvasPreferGL(
true);
21 gStyle->SetFrameFillColor(42);
22 TCanvas *c1 =
new TCanvas(
"c1");
25 f2 =
new TF2(
"f2",
"sin(2*x)*sin(2*y)*[0]",0,pi,0,pi);
26 f2->SetParameter(0,1);
32 TTimer *timer =
new TTimer(20);
33 timer->SetCommand(
"Animate()");
39 if (!gROOT->GetListOfCanvases()->FindObject(
"c1"))
return;
41 f2->SetParameter(0,TMath::Cos(t));