Skip to content

Color

A color in RGBA format

Panel support

Color is used in the 3DImage panels.

Parent schemas

Color appears in the ArrowPrimitiveCircleAnnotationCubePrimitiveCylinderPrimitiveLinePrimitiveModelPrimitivePointsAnnotationSpherePrimitiveTextAnnotationTextPrimitiveTriangleListPrimitive message schemas.

Schema

fieldtypedescription
rfloat64Red value between 0 and 1
gfloat64Green value between 0 and 1
bfloat64Blue value between 0 and 1
afloat64Alpha value between 0 and 1

Reference implementations

Foxglove schemas are framework-agnostic, and can be implemented using any supported message encoding:

encodingschema
ROS 1foxglove_msgs/Color
ROS 2foxglove_msgs/msg/Color
JSONfoxglove.Color
Protobuffoxglove.Color
FlatBuffersfoxglove.Color
OMG IDLfoxglove::Color

You must use the schema names specified above for Foxglove to recognize the schema.

Flora is developed on the source code of Foxglove and Lichtblick, adhering to the MPL 2.0 license.