21#include "ROOT/RText.hxx"
29 auto canvas = RCanvas::Create(
"Canvas Title");
31 for (
int i=0; i<=360; i+=10) {
32 auto text = canvas->
Draw<RText>(
RPadPos(0.5_normal, 0.6_normal),
"____ Hello World");
34 RColor col((
int) (0.38*i), (
int) (0.64*i), (
int) (0.76*i));
35 text->AttrText().SetColor(col).SetSize(10+i/10).SetAngle(i).SetAlign(13).SetFont(42);
A position (horizontal and vertical) in a RPad.
virtual void Draw(Option_t *option="")
Default Draw method for all objects.