5.10. Color Stripe (property)

<color_stripe> ‐ A color stripe for a multi-color texture

5.10.1. Attributes

NameTypeDefaults
indexINTEGERNone
rFLOAT0.0
gFLOAT0.0
bFLOAT0.0
aFLOAT1.0
lengthFLOAT0.0

5.10.2. Description

This element defines a color stripe for a multicolor texture. The integer value of theindex attribute defines the rank of the stripe. The float value of thelength attribute defines the width of the stripe (as a value between 0 and 1). The float values of the r, g, and b attributes define the float values (expected between 0.0 and 1.0) for the red, green, and blue components.

The float value of the a attribute defines the float value (expected between 0.0 and 1.0) of the alpha component (transparency).

5.10.3. Expected child

None.

5.10.4. Example

The example below defines an opaque yellow stripe This stripe the second stripe of the multicolor texture, and its width is equal to the third of the whole texture.

<color_stripe index="2" r="1.0" g="1.0" b="0.0" a="1.0" length="0.33" />>