A demo to show transparency with TMultiGraph (and a really interesting curve/equation).
Point compression in TPadPainter. You can see all three flowers ONLY with Cocoa (transparency).
The equation by Paul Burke: http://paulbourke.net/geometry/
#include <cassert>
#include <vector>
namespace {
typedef vector_type::size_type size_type;
{
assert(
nPoints > 100 &&
"create_flower, number of points is too small");
for (size_type i = 0; i <=
nPoints; ++i) {
}
}
}
{
::Error(
"flower",
"failed to create custom colors");
return;
}
::Error(
"flower",
"This macro requires OS X version of ROOT with cocoa enabled");
return;
}
new TColor(indices[0], 0., 0., 0.5,
"custom_blue", 0.7);
gr1->SetFillColor(indices[0]);
new TColor(indices[1], 0.5, 0., 0.5,
"custom_purple", 0.5);
gr2->SetFillColor(indices[1]);
new TColor(indices[2], 1., 0., 0.4,
"custom_magenta", 0.2);
gr3->SetFillColor(indices[2]);
}
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
Option_t Option_t TPoint TPoint angle
The color creation and management class.
A TGraph is an object made of two arrays X and Y with npoints each.
A TMultiGraph is a collection of TGraph (or derived) objects.
unsigned FindFreeCustomColorIndices(Color_t(&indices)[N])
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.
- Author
- Timur Pocheptsov
Definition in file flower.C.