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 );
Represents an association.
Represents a color. Objects from this class are copyable and assignable.
Color(const math::Vector4f &)
Instantiates from floating point values, clamped to interval .
static const Color GREEN_NO_ALPHA
Holds Color(0, 255, 0, 0).
static const Color BLUE_NO_ALPHA
Holds Color(0, 0, 255, 0).
static const Color RED_NO_ALPHA
Holds Color(255, 0, 0, 0).
Color & operator=(const Color &other)
Assigns values from other.
static const Color GREEN
Holds Color(0, 255, 0, 255).
unsigned char g
Holds the green component.
static const Color BLACK_NO_ALPHA
Holds Color(0, 0, 0, 0).
bool operator<(const Color &other) const
Compares to other.
Color()
Instantiates with BLACK_NO_ALPHA.
static const Color WHITE_NO_ALPHA
Holds Color(255, 255, 255, 0).
bool operator==(const Color &other) const
Compares to other.
unsigned char r
Holds the red component.
Color(unsigned char r, unsigned char g, unsigned char b, unsigned char a)
Instantiates.
unsigned char b
Holds the blue component.
unsigned char a
Holds the alpha component.
static const Color WHITE
Holds Color(255, 255, 255, 255).
static const Color BLUE
Holds Color(0, 0, 255, 255).
static const Color BLACK
Holds Color(0, 0, 0, 255).
static const Color RED
Holds Color(255, 0, 0, 255).
Defines Carna::base::math namespace and CARNA_FOR_VECTOR3UI.
Eigen::Matrix< float, 4, 1 > Vector4f
Defines vector.