A RGB color with alpha component.
More...
#include <color.hpp>
|
float | a |
|
float | b |
|
float | g |
|
float | r |
|
A RGB color with alpha component.
Definition at line 18 of file color.hpp.
◆ Rgba() [1/2]
Create a fully transparent black color
Definition at line 150 of file color.cpp.
◆ Rgba() [2/2]
Rgba::Rgba |
( |
const float |
r, |
|
|
const float |
g, |
|
|
const float |
b, |
|
|
const float |
a |
|
) |
| |
Construct a Rgba
- Parameters
-
r | The red component (0.0 .. 1.0) |
g | The green component (0.0 .. 1.0) |
b | The blue component (0.0 .. 1.0) |
a | The alpha component (0.0 .. 1.0) |
Definition at line 158 of file color.cpp.
◆ fromHsv()
Rgba Rgba::fromHsv |
( |
const Hsv & |
hsv | ) |
|
|
static |
◆ fromRgb() [1/2]
Rgba Rgba::fromRgb |
( |
const Rgb & |
rgb | ) |
|
|
static |
◆ fromRgb() [2/2]
Rgba Rgba::fromRgb |
( |
const Rgb & |
rgb, |
|
|
const float |
a |
|
) |
| |
|
static |
◆ operator std_msgs::ColorRGBA()
Rgba::operator std_msgs::ColorRGBA |
( |
| ) |
const |
|
noexcept |
◆ BLACK
◆ BLUE
◆ GREEN
◆ RED
◆ TRANSPARENT
const Rgba astra_ros::Rgba::TRANSPARENT |
|
static |
◆ WHITE
The documentation for this class was generated from the following files: