25#include "ROOT/RText.hxx"
33 auto canvas = RCanvas::Create(
"RText angle example");
35 for (
double angle = 0; angle <= 360; angle += 10) {
36 auto draw = canvas->Draw<RText>(
RPadPos(0.5_normal, 0.6_normal),
"____ Hello World");
38 draw->text.color =
RColor((
int) (0.38*angle), (
int) (0.64*angle), (
int) (0.76*angle));
39 draw->text.size = 0.01 + angle/5000.;
40 draw->text.angle = angle;
41 draw->text.align = RAttrText::kLeftTop;
42 draw->text.font = RAttrFont::kArial;
A position (horizontal and vertical) in a RPad.