Post

ColorRGBA

Overview

ColorRGBA node defines a set of RGBA color values that apply either to a sibling Coordinate or CoordinateDouble node, or else to a parent ElevationGrid node. ColorRGBA is only used by ElevationGrid, IndexedFaceSet, IndexedLineSet, LineSet, PointSet, Triangle* and IndexedTriangle* nodes.

The ColorRGBA node belongs to the Rendering component and requires at least level 1, its default container field is color. It is available from X3D version 3.0 or higher.

Hierarchy

1
2
3
4
+ X3DNode
  + X3DGeometricPropertyNode
    + X3DColorNode
      + ColorRGBA

Fields

SFNode [in, out] metadata NULL [X3DMetadataObject]

Information about this node can be contained in a MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataString or MetadataSet node.

Hint

MFColorRGBA [in, out] color [ ] [0,1]

The color field defines an array of 4-tuple RGBA colors.

Warning

  • ColorRGBA requires Rendering component level 3 (alpha fully supported), Rendering component level 1 (alpha optional), otherwise Full profile.

Advice

Hints

Warning

  • ColorRGBA requires Rendering component level 3 (alpha fully supported), Rendering component level 1 (alpha optional), otherwise Full profile.

Example

See Also

This post is licensed under CC BY 4.0 by the author.