MFColor


Purpose:

This is a multiple-value field found in the Material node. This field can contain any number of RGB colors. A full description of multiple-value fields is presented elsewhere on this site.

Syntax

[ 1.0 0.0 0.0, 0 1 0, 0 0 1 ]

# where each triplet represents a red, green, and blue value

Explanation

MFColors are written as one or more RGB triplets. These RGB triplets represent floating point numbers and are always presented in standard scientific notation. As discussed earlier, if more than one value is present, all of the values must be enclosed in square brackets and the triplets separated by commas.

Example Use

The following code fragment is from Calig4.wrl.

ambientColor [ 0.100 0.100 0.100,0.100 0.100 0.100,0.100 0.100 0.100,]

See Also

Material, multiple-value fields