12 #ifndef COLOR_H_6014714286 13 #define COLOR_H_6014714286 15 #include <Carna/Carna.h> 66 Color(
unsigned char r,
unsigned char g,
unsigned char b,
unsigned char a );
87 bool operator==(
const Color& other )
const;
92 bool operator<(
const Color& other )
const;
107 #endif // COLOR_H_6014714286 Defines Carna::base::math namespace and CARNA_FOR_VECTOR3UI.
unsigned char a
Holds the alpha component.
unsigned char r
Holds the red component.
Eigen::Matrix< float, 4, 1 > Vector4f
Defines vector.
unsigned char g
Holds the green component.
static const Color GREEN
Holds Color(0, 255, 0, 255).
static const Color RED
Holds Color(255, 0, 0, 255).
unsigned char b
Holds the blue component.
Represents a color. Objects from this class are copyable and assignable.
static const Color BLUE
Holds Color(0, 0, 255, 255).
static const Color WHITE_NO_ALPHA
Holds Color(255, 255, 255, 0).
static const Color RED_NO_ALPHA
Holds Color(255, 0, 0, 0).
static const Color BLACK
Holds Color(0, 0, 0, 255).
static const Color WHITE
Holds Color(255, 255, 255, 255).
static const Color BLACK_NO_ALPHA
Holds Color(0, 0, 0, 0).
static const Color GREEN_NO_ALPHA
Holds Color(0, 255, 0, 0).
static const Color BLUE_NO_ALPHA
Holds Color(0, 0, 255, 0).