Difference between revisions of "ColorInterpolator"
From Web3D.org
(infinity instead of garbage) |
(cleanup garbage) |
||
Line 5: | Line 5: | ||
ColorInterpolator : X3DInterpolatorNode { | ColorInterpolator : X3DInterpolatorNode { | ||
SFFloat [in] set_fraction (-∞,∞) | SFFloat [in] set_fraction (-∞,∞) | ||
− | + | MFFloat [in,out] key [] (-∞,∞) | |
− | + | MFColor [in,out] keyValue [] [0,1] | |
SFNode [in,out] metadata NULL [X3DMetadataObject] | SFNode [in,out] metadata NULL [X3DMetadataObject] | ||
SFColor [out] value_changed | SFColor [out] value_changed |
Revision as of 10:36, 6 May 2012
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.