Go to the documentation of this file.
31 constexpr
inline explicit TColor(
const unsigned int color_RGB_24bit)
52 inline operator unsigned int(
void)
const
54 return (((
unsigned int)
R) << 16) | (((
unsigned int)
G) << 8) |
B;
70 std::ostream&
operator<<(std::ostream& o,
const TColor&
c);
87 :
R(col.
R * (1.f / 255)),
88 G(col.
G * (1.f / 255)),
89 B(col.
B * (1.f / 255)),
90 A(col.
A * (1.f / 255))
static constexpr TColor red()
Predefined colors.
TColor operator+(const TColor &first, const TColor &second)
Pairwise addition of their corresponding RGBA members.
constexpr TColor(const unsigned int color_RGB_24bit)
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
TColorf(const TColor &col)
TColor & operator=(const TColor &other)
bool operator==(const mrpt::img::TCamera &a, const mrpt::img::TCamera &b)
GLclampf GLclampf GLclampf alpha
Virtual base class for "archives": classes abstracting I/O streams.
std::ostream & operator<<(std::ostream &o, const TColor &c)
GLdouble GLdouble GLdouble r
TColor operator-(const TColor &first, const TColor &second)
Pairwise substraction of their corresponding RGBA members.
static constexpr TColor green()
static constexpr TColor white()
constexpr TColor(uint8_t r, uint8_t g, uint8_t b, uint8_t alpha=255)
static constexpr TColor gray()
A RGB color - floats in the range [0,1].
static constexpr TColor blue()
static constexpr TColor black()
TColor & operator-=(const TColor &other)
constexpr TColor(const unsigned int color_RGB_24bit, const uint8_t alpha)
mrpt::serialization::CArchive & operator>>(mrpt::serialization::CArchive &i, TColor &c)
TColor & operator+=(const TColor &other)
TColorf(float r=0, float g=0, float b=0, float alpha=1.0f)
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |