Color
A color in RGBA format
Panel support
Color
is used in the 3D and Image panels.
Parent schemas
Color
appears in the ArrowPrimitive
, CircleAnnotation
, CubePrimitive
, CylinderPrimitive
, LinePrimitive
, ModelPrimitive
, PointsAnnotation
, SpherePrimitive
, TextAnnotation
, TextPrimitive
, and TriangleListPrimitive
message schemas.
Schema
field | type | description |
---|---|---|
r | float64 | Red value between 0 and 1 |
g | float64 | Green value between 0 and 1 |
b | float64 | Blue value between 0 and 1 |
a | float64 | Alpha value between 0 and 1 |
Reference implementations
Foxglove schemas are framework-agnostic, and can be implemented using any supported message encoding:
encoding | schema |
---|---|
ROS 1 | foxglove_msgs/Color |
ROS 2 | foxglove_msgs/msg/Color |
JSON | foxglove.Color |
Protobuf | foxglove.Color |
FlatBuffers | foxglove.Color |
OMG IDL | foxglove::Color |
You must use the schema names specified above for Foxglove to recognize the schema.