85 assert(
gPad !=
nullptr &&
"add_ellipse, no pad to add ellipse");
89 ::Error(
"add_ellipse",
"failed to find a new color index for a gradient fill");
107 TCanvas *
const cnv =
new TCanvas(
"radial gradients",
"radial gradients", 800, 800);
110 "this demo requires OS X and ROOT built with --enable-cocoa");
115 for (
unsigned i = 0; i < 100; ++i)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
R__EXTERN TRandom * gRandom
void SetRadialGradient(const Point ¢er, Double_t radius)
Set radial gradient.
virtual void SetSeed(ULong_t seed=0)
Set the random generator seed.
Double_t Rndm() override
Machine independent random number generator.
unsigned FindFreeCustomColorIndices(Color_t(&indices)[N])