25#include "ROOT/RText.hxx"
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;
static std::shared_ptr< RCanvas > Create(const std::string &title)
Create new canvas instance.
A position (horizontal and vertical) in a RPad.
Namespace for ROOT features in testing.