Color

A color represented in RGBA format.

Panel support

Color is used in the 3D and Image panels.

Parent schemas

Color appears in the following message schemas:

ArrowPrimitive, CircleAnnotation, CubePrimitive, CylinderPrimitive, LinePrimitive, ModelPrimitive, PointsAnnotation, SpherePrimitive, TextAnnotation, TextPrimitive and TriangleListPrimitive.

Schema

FieldTypeDescription
rfloat64Red value between 0 and 1
gfloat64Green value between 0 and 1
bfloat64Blue value between 0 and 1
afloat64Alpha (opacity) value between 0 and 1

Reference implementations

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