5.64. TabColor (element)

<tabcolor> ‐ A table of colors in a subdivision (a mesh)

5.64.1. Attributes

NameTypeDefaults
sizeINTEGERNone (required)

5.64.2. Description

This element defines a table of colors in a subdivision, a mesh made of a set of faces with normals and colors or texture coordinates.

The integer value size of the size attribute defines the number of colors contained in the table of colors. This element expects size colors in its scope.

5.64.3. Expected children

The following elements must occur in tabcolor: as many colors as the value of the size attribute.

5.64.4. Example

The example below defines a tabcolor with two colors.

<tabcolor size="2">
  <color index="1" r="1.0" g="0.0" b="0.0" a="1.0" />
  <color index="2" r="0.0" g="1.0" b="0.0" a="1.0" />
</tabcolor>