20#include "ROOT/RColor.hxx"
21#include "ROOT/RText.hxx"
29 auto canvas = RCanvas::Create(
"Canvas Title");
31 for (
int i=0; i<=360; i+=10) {
32 auto opts = canvas->Draw(RText({0.5_normal, 0.6_normal},
"____ Hello World"));
34 RColor col(0.0015*i, 0.0025*i ,0.003*i);
35 opts->SetTextColor(col);
36 opts->SetTextSize(10+i/10);
37 opts->SetTextAngle(i);
38 opts->SetTextAlign(13);
39 opts->SetTextFont(42);