Structure for saving RGB colors. More...
#include <Color.h>
Structure for saving RGB colors.
The Constructor takes 3 Float_t numbers between 0. and 1. corresponding to RGB values. The values are given in relation to the maximum value of 255. E.g a blue value of 51 would correspond to a relative value of 51/255 = 0.2.
The structure color will automatically add the new color to the ROOT colors using TColor::GetColor(r, g, b). The corresponding ROOT color index can then be accessed via the index parameter of the structure.
For a full list and preview of the PlottI colors see Colors in PlottI.
Public Member Functions | |
| color (Float_t red, Float_t green, Float_t blue) | |
| Constructor using relative RGB values. | |
| color (Int_t hexvalue) | |
| Constructor using hex integer value, see StackOverflow | |
Public Attributes | |
| Float_t | r |
| red part of color | |
| Float_t | g |
| green part of color | |
| Float_t | b |
| blue part of color | |
| Color_t | index |
| ROOT color index of color. | |
1.8.5