![]() |
Belle II Software
light-2303-iriomote
|
Implements a colour palette, see http://sobac.com/sobac/tangocolors.htm. More...
Functions | |
| const char * | getHex (const std::string &tangoName, int tangoId=1) |
| Get six-digit hex code (#abcdef) for given name in tango colour palette. More... | |
| int | getTColorID (const std::string &tangoName, int tangoId=1) |
| Get TColor ID for given name in tango colour palette. More... | |
Implements a colour palette, see http://sobac.com/sobac/tangocolors.htm.
Functions take a name (Aluminium, Slate, Chameleon, ...) and an ID (1: light, 2: medium, 3: dark) Invalid names/id produce an exception.
| const char * getHex | ( | const std::string & | tangoName, |
| int | tangoId = 1 |
||
| ) |
Get six-digit hex code (#abcdef) for given name in tango colour palette.
e.g. getHex("Aluminium", 3) returns "\#eeeeec".
Definition at line 18 of file ColorPalette.cc.
| int getTColorID | ( | const std::string & | tangoName, |
| int | tangoId = 1 |
||
| ) |
Get TColor ID for given name in tango colour palette.
Use this for setting colours for ROOT objects.
Definition at line 39 of file ColorPalette.cc.