I apologize again, the example was badly chosen. There is the 'vizact.fadeTo()' method to perform this color transition.
Actually, for me it is changing the intensity of a light source. Knowing the refresh rate would allow me to compute the number of steps from 1 to 0 in a given time interval.
Alternatively, does the Vizard provide a method for computing such a sequence of (e.g. intensity) values for a transition between two real numbers over a fixed time interval? That would do as well.
However, I would prefer the first way. Being able to query the current refresh rate might come in handy in other situations.
|