Classes | |
struct | ColorHSVA |
struct | ColorHSVA24 |
struct | ColorRGBA |
struct | ColorRGBA24 |
struct | GenericColorHSVA |
struct | GenericColorRGBA |
Functions | |
color_util::ColorHSVA | changeColorspace (const color_util::ColorRGBA &rgba) |
color_util::ColorHSVA24 | changeColorspace (const color_util::ColorRGBA24 &rgba) |
color_util::ColorRGBA | changeColorspace (const color_util::ColorHSVA &hsva) |
color_util::ColorRGBA24 | changeColorspace (const color_util::ColorHSVA24 &hsva) |
const ColorRGBA24 & | get (const NamedColor &name) |
const std::vector< ColorRGBA24 > & | getNamedColors () |
template<typename hsva > | |
hsva | hueBlend (const hsva &color_a, const hsva &color_b, double ratio) |
Return a color that is a linear blending of color_a and color_b in hsv space. More... | |
color_util::ColorHSVA | hueBlendPlus (const color_util::ColorHSVA &color_a, const color_util::ColorHSVA &color_b, double ratio) |
Return a color that blends color_a and color_b in hsv space, using the shortest distance between the hues. More... | |
template<typename rgba > | |
rgba | rgbaBlend (const rgba &color_a, const rgba &color_b, double ratio) |
Return a color that is a linear blending of color_a and color_b in rgba space. More... | |
float | toFloat (unsigned char n) |
color_util::ColorRGBA | toFloat (const color_util::ColorRGBA24 &int_color) |
color_util::ColorHSVA | toFloat (const color_util::ColorHSVA24 &int_color) |
color_util::ColorRGBA24 | toInt (const color_util::ColorRGBA &float_color) |
color_util::ColorHSVA24 | toInt (const color_util::ColorHSVA &float_color) |
unsigned char | toInt (float n) |
std_msgs::ColorRGBA | toMsg (const color_util::ColorRGBA &rgba) |
std_msgs::ColorRGBA | toMsg (const color_util::ColorRGBA24 &rgba) |
std_msgs::ColorRGBA | toMsg (const color_util::ColorHSVA &hsva) |
std_msgs::ColorRGBA | toMsg (const color_util::ColorHSVA24 &hsva) |
|
strong |
Definition at line 43 of file named_colors.h.
color_util::ColorHSVA color_util::changeColorspace | ( | const color_util::ColorRGBA & | rgba | ) |
Definition at line 92 of file convert.cpp.
color_util::ColorHSVA24 color_util::changeColorspace | ( | const color_util::ColorRGBA24 & | rgba | ) |
Definition at line 145 of file convert.cpp.
color_util::ColorRGBA color_util::changeColorspace | ( | const color_util::ColorHSVA & | hsva | ) |
Definition at line 150 of file convert.cpp.
color_util::ColorRGBA24 color_util::changeColorspace | ( | const color_util::ColorHSVA24 & | hsva | ) |
Definition at line 213 of file convert.cpp.
|
inline |
Definition at line 173 of file named_colors.h.
|
inline |
Definition at line 105 of file named_colors.h.
|
inline |
|
inline |
Return a color that blends color_a and color_b in hsv space, using the shortest distance between the hues.
Note the shortest distance between the hues may wrap around 1.0
Only available in floating point because it assumes the hue is [0.0, 1.0]
color_a | |
color_b | |
ratio | value in range [0.0, 1.0] |
|
inline |
|
inline |
Definition at line 40 of file convert.cpp.
color_util::ColorRGBA color_util::toFloat | ( | const color_util::ColorRGBA24 & | int_color | ) |
Definition at line 45 of file convert.cpp.
color_util::ColorHSVA color_util::toFloat | ( | const color_util::ColorHSVA24 & | int_color | ) |
Definition at line 55 of file convert.cpp.
color_util::ColorRGBA24 color_util::toInt | ( | const color_util::ColorRGBA & | float_color | ) |
Definition at line 70 of file convert.cpp.
color_util::ColorHSVA24 color_util::toInt | ( | const color_util::ColorHSVA & | float_color | ) |
Definition at line 80 of file convert.cpp.
|
inline |
Definition at line 65 of file convert.cpp.
std_msgs::ColorRGBA color_util::toMsg | ( | const color_util::ColorRGBA & | rgba | ) |
Definition at line 218 of file convert.cpp.
std_msgs::ColorRGBA color_util::toMsg | ( | const color_util::ColorRGBA24 & | rgba | ) |
Definition at line 228 of file convert.cpp.
std_msgs::ColorRGBA color_util::toMsg | ( | const color_util::ColorHSVA & | hsva | ) |
Definition at line 233 of file convert.cpp.
std_msgs::ColorRGBA color_util::toMsg | ( | const color_util::ColorHSVA24 & | hsva | ) |
Definition at line 238 of file convert.cpp.