18#include <ROOT/RLine.hxx>
27 auto canvas = RCanvas::Create(
"RLine example");
29 for (
double i = 0; i < 360; i += 1) {
31 RColor col(50 + (
int)i / 360 * 200, 0, 0);
35 draw->line.color = col;
45 canvas->SetSize(900, 700);
47 if (canvas->SaveAs(
"line.png"))
48 printf(
"Store RCanvas in line.png\n");
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint angle
Double_t Cos(Double_t)
Returns the cosine of an angle of x radians.
Double_t Sin(Double_t)
Returns the sine of an angle of x radians.