37 #include <visp3/core/vpConfig.h>
38 #include <visp3/core/vpRGBa.h>
252 inline vpColor(
unsigned char r,
unsigned char g,
unsigned char b,
254 :
vpRGBa(r, g, b), id(cid)
267 inline vpColor(
unsigned char r,
unsigned char g,
unsigned char b,
unsigned char alpha,
269 :
vpRGBa(r, g, b, alpha), id(cid)
277 inline vpColor(
const vpColor &color,
unsigned char alpha) :
vpRGBa(color.R, color.G, color.B, alpha), id(color.id) { }
315 #if defined(VISP_USE_MSVC) && defined(visp_EXPORTS)
Class to define RGB colors available for display functionalities.
static const vpColor white
vpColor(const vpColor &color, unsigned char alpha)
static vpColor getColor(const unsigned int &i)
static const vpColor darkGray
static const vpColor cyan
static const vpColor none
static const vpColor orange
static const vpColor darkRed
static const vpColor blue
static const vpColor lightGray
static const vpColor lightBlue
vpColor(unsigned char r, unsigned char g, unsigned char b, unsigned char alpha, vpColor::vpColorIdentifier cid=vpColor::id_unknown)
vpColor(unsigned char r, unsigned char g, unsigned char b, vpColor::vpColorIdentifier cid=vpColor::id_unknown)
static const vpColor darkGreen
static const unsigned int nbColors
void setColor(unsigned char r, unsigned char g, unsigned char b, unsigned char a=vpRGBa::alpha_default)
static const vpColor darkBlue
static const vpColor purple
static const vpColor lightGreen
static const vpColor yellow
static const vpColor allColors[]
static const vpColor lightRed
static const vpColor black
static const vpColor green
static const vpColor gray
bool operator!=(const vpRGBa &v) const
bool operator==(const vpRGBa &v) const