Difference between revisions of "ColorInterpolator"
From Web3D.org
Abergstrom (Talk | contribs) |
Abergstrom (Talk | contribs) |
||
Line 3: | Line 3: | ||
<pre> | <pre> | ||
− | + | ColorInterpolator : X3DInterpolatorNode { | |
− | + | SFFloat [in] set_fraction (-∞,∞) | |
− | + | �MFFloat [in,out] key [] (-∞,∞) | |
− | + | �MFColor [in,out] keyValue [] [0,1] | |
− | SFNode | + | SFNode [in,out] metadata NULL [X3DMetadataObject] |
− | + | SFColor [out] value_changed | |
− | + | ||
− | + | ||
} | } | ||
</pre> | </pre> | ||
− | |||
− | + | This node interpolates among a list of MFColor key values to produce an SFColor (RGB) value_changed event. The number of colours in the ''keyValue'' field shall be equal to the number of key frames in the ''key'' field. The ''keyValue'' field and value_changed events are defined in RGB colour space. A linear interpolation using the value of set_fraction as input is performed in HSV space (see [FOLEY] for description of RGB and HSV colour spaces). The results are undefined when interpolating between two consecutive keys with complementary hues. | |
− | The '' | + | |
− | + | ||
− | + | ||
− | The '' | + | |
* [[Node Reference]] | * [[Node Reference]] |
Revision as of 22:54, 1 February 2006
ColorInterpolator
ColorInterpolator : X3DInterpolatorNode { SFFloat [in] set_fraction (-∞,∞) �MFFloat [in,out] key [] (-∞,∞) �MFColor [in,out] keyValue [] [0,1] SFNode [in,out] metadata NULL [X3DMetadataObject] SFColor [out] value_changed }
This node interpolates among a list of MFColor key values to produce an SFColor (RGB) value_changed event. The number of colours in the keyValue field shall be equal to the number of key frames in the key field. The keyValue field and value_changed events are defined in RGB colour space. A linear interpolation using the value of set_fraction as input is performed in HSV space (see [FOLEY] for description of RGB and HSV colour spaces). The results are undefined when interpolating between two consecutive keys with complementary hues.