15#ifndef COLOR_H_6014714286
16#define COLOR_H_6014714286
69 Color(
unsigned char r,
unsigned char g,
unsigned char b,
unsigned char a );
Contains forward-declarations.
Represents an association.
Represents a color. Objects from this class are copyable and assignable.
Color()
Instantiates with BLACK_NO_ALPHA.
static const Color GREEN
Holds Color(0, 255, 0, 255).
static const Color BLUE_NO_ALPHA
Holds Color(0, 0, 255, 0).
Color(const math::Vector4f &)
Instantiates from floating point values, clamped to interval .
static const Color BLACK_NO_ALPHA
Holds Color(0, 0, 0, 0).
unsigned char r
Holds the red component.
Color & operator=(const Color &other)
Assigns values from other.
bool operator<(const Color &other) const
Compares to other.
static const Color RED
Holds Color(255, 0, 0, 255).
static const Color GREEN_NO_ALPHA
Holds Color(0, 255, 0, 0).
bool operator==(const Color &other) const
Compares to other.
unsigned char a
Holds the alpha component.
unsigned char b
Holds the blue component.
static const Color RED_NO_ALPHA
Holds Color(255, 0, 0, 0).
static const Color BLUE
Holds Color(0, 0, 255, 255).
static const Color WHITE
Holds Color(255, 255, 255, 255).
static const Color WHITE_NO_ALPHA
Holds Color(255, 255, 255, 0).
Color(unsigned char r, unsigned char g, unsigned char b, unsigned char a)
Instantiates.
unsigned char g
Holds the green component.
static const Color BLACK
Holds Color(0, 0, 0, 255).
Defines LibCarna::base::math namespace and LIBCARNA_FOR_VECTOR3UI.
Eigen::Matrix< float, 4, 1 > Vector4f
Defines vector.
Defines LibCarna::base::noncopyable and NON_COPYABLE.