3 #ifndef CUSTOMCOLOR_INCLUDED 4 #define CUSTOMCOLOR_INCLUDED 13 namespace CocoaTutorials {
20 ::Error(
"FindFreeCustomColorIndex",
"gROOT is null");
26 if (!
gROOT->GetColor(i))
29 ::Error(
"FindFreeCustomColorIndex",
"no index found");
47 for (; nFound <
N; ++nFound) {
49 if (tmp[nFound] == -1)
54 std::copy(tmp, tmp + N, indices);
unsigned FindFreeCustomColorIndices(Color_t(&indices)[N])
Namespace for new ROOT classes and functions.
Color_t FindFreeCustomColorIndex(Color_t start=1000)
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
void Error(ErrorHandler_t func, int code, const char *va_(fmt),...)
Write error message and call a handler, if required.