|
ACTS
Experiment-independent tracking
|
Struct describing a color. More...
#include <Acts/Visualization/ViewConfig.hpp>
Public Member Functions | |
| Color ()=default | |
| Color (Color &&)=default | |
| Move constructor. | |
| Color (const Color &)=default | |
| Copy constructor. | |
| constexpr | Color (double r, double g, double b) |
| Constructor from raw double dgb values [0, 1]. | |
| constexpr | Color (int r, int g, int b) |
| Constructor from raw integer rgb values [0, 255]. | |
| constexpr | Color (std::array< double, 3 > values) |
| Constructor from array of double rgb values [0, 1]. | |
| constexpr | Color (std::array< int, 3 > values) |
| Constructor from array of integer rgb values [0, 255]. | |
| constexpr | Color (std::string_view hex) |
| Constructor from hex string. | |
| Color & | operator= (Color &&)=default |
| Move assignment operator. | |
| Color & | operator= (const Color &)=default |
| Copy assignment operator. | |
| int & | operator[] (unsigned int i) |
| Operator to access the color components. | |
| int | operator[] (unsigned int i) const |
| Operator to access the color components. | |
Public Attributes | |
| std::array< int, 3 > | rgb {} |
| RGB color values (0-255) for red, green, blue components. | |
Struct describing a color.
Internally, the color is represented using a triplet of integers between 0 and 255 corresponding to red green and blue.
|
default |
|
default |
Copy constructor.
|
default |
Move constructor.
|
constexpr |
Constructor from raw integer rgb values [0, 255].
| r | The red component |
| g | The green component |
| b | The blue component |
|
explicitconstexpr |
Constructor from array of integer rgb values [0, 255].
| values | The rgb values |
|
explicitconstexpr |
Constructor from array of double rgb values [0, 1].
| values | The rgb values |
|
constexpr |
Constructor from raw double dgb values [0, 1].
| r | The red component |
| g | The green component |
| b | The blue component |
|
explicitconstexpr |
Constructor from hex string.
The expected format is #RRGGBB
| hex | The hex string |
Move assignment operator.
Copy assignment operator.
| int & Acts::Color::operator[] | ( | unsigned int | i | ) |
Operator to access the color components.
| i | The index of the component |
| int Acts::Color::operator[] | ( | unsigned int | i | ) | const |
Operator to access the color components.
| i | The index of the component |
| std::array<int, 3> Acts::Color::rgb {} |
RGB color values (0-255) for red, green, blue components.