Difference between revisions of "ColorInterpolator"

From Web3D.org
Jump to: navigation, search
(infinity instead of garbage)
Line 4: Line 4:
 
<pre>
 
<pre>
 
ColorInterpolator : X3DInterpolatorNode {
 
ColorInterpolator : X3DInterpolatorNode {
   SFFloat [in]    set_fraction      (-∞,∞)
+
   SFFloat [in]    set_fraction      (-,)
  �MFFloat [in,out] key          []  (-∞,∞)
+
  �MFFloat [in,out] key          []  (-,)
 
  �MFColor [in,out] keyValue      []  [0,1]
 
  �MFColor [in,out] keyValue      []  [0,1]
 
   SFNode  [in,out] metadata      NULL [X3DMetadataObject]
 
   SFNode  [in,out] metadata      NULL [X3DMetadataObject]

Revision as of 17:01, 21 March 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.