Previous:Specifying Colors Main Index Next:Color Keywords

#### Color Vectors

The syntax for a color vector is...

COLOR_VECTOR:

`
  rgb
` <3_Term_Vector> | `
  rgbf
` <4_Term_Vector> | `
  rgbt
` <4_Term_Vector> |
  [
`rgbft` ] <5_Term_Vector>

...where the vectors are any valid vector expressions of 3, 4 or 5 components. For example

     color rgb <1.0, 0.5, 0.2>

This specifies a color whose red component is 1.0 or 100% of full intensity. The green component is 0.5 or 50% of full intensity and the blue component is 0.2 or 20% of full intensity. Although the filter and transmit components are not explicitly specified, they exist and are set to their default values of 0 or no transparency.

The `rgbf` keyword requires a four component vector. The 4th component is the filter component and the transmit component defaults to zero. Similarly the `rgbt` keyword requires four components where the 4th value is moved to the 5th component which is transmit and then the filter component is set to zero.

The `rgbft` keyword allows you to specify all five components. Internally in expressions all five are always used.

Under some circumstances, if the vector expression is a 5 component expression or there is a color identifier in the expression then the `rgbtf` keyword is optional.

Previous:Specifying Colors Main Index Next:Color Keywords