Skip to main content

Color

Color in RGBA format.

Panel Support​

Color is used in the 3D Panel and Image Panel.

Parent Schema​

Color appears in the ArrowPrimitive, CircleAnnotation, CubePrimitive, CylinderPrimitive, LinePrimitive, ModelPrimitive, PointsAnnotation, SpherePrimitive, TextAnnotation, TextPrimitive, TriangleListPrimitive message schemas.

Field Definitions​

Field NameTypeDescription
rfloat64Red, value between 0 and 1
gfloat64Green, value between 0 and 1
bfloat64Blue, value between 0 and 1
afloat64Alpha (transparency), value between 0 and 1

References​

coScene's schema types are framework-independent and can be implemented using any supported message encoding format.

Encoding FormatSchema Name
ROS 1foxglove_msgs/Color
ROS 2foxglove_msgs/msg/Color
JSONfoxglove.Color
Protobuffoxglove.Color
FlatBuffersfoxglove.Color
OMG IDLfoxglove::Color

Note: You must use the schema names specified above for coScene to recognize them correctly.