Node: ColorChaser

X3D: 3.3
Component: Followers
Status:
experimental

Quick Links

➨ Fields

The ColorChaser animates transitions for single color values. Whenever the set_destination field receives a floating point number, the value_changed creates a transition from its current value to the newly set number. It creates a smooth transition that ends duration seconds after the last number has been received.

HTML Encoding and Default Values

<ColorChaser destination='0,0,0' duration='1' initialDestination='0.8,0.8,0.8' initialValue='0.8,0.8,0.8' isActive='false' metadata='X3DMetadataObject' value='0,0,0' ></ColorChaser>

Inheritance


Fields

These are the X3D / X3DOM fields of this node. Values should usually be received / set as strings via DOM functions (i.e., using setAttribute("myFieldName", "myFieldValue") and getAttribute("myFieldName")).
Name Type Default Value Range Inheritance Standard Description
destination SFColor 0,0,0 [0,1] The target color value
duration SFTime 1 X3DChaserNode Duration of the transition
initialDestination SFColor 0.8,0.8,0.8 [0,1] The field initialDestination should be set to the same value as initialValue unless a transition to a certain value is to be created right after the scene is loaded or right after the ColorChaser node is created dynamically.
initialValue SFColor 0.8,0.8,0.8 [0,1] The field initialValue can be used to set the initial value.
isActive SFBool false X3DFollowerNode isActive shows if the sensor is active
metadata SFNode X3DMetadataObject Core/X3DNode Field to add metadata information
value SFColor 0,0,0 [0,1] The current color value