Package dtk :: Package ui :: Module animation

Module animation

source code

Classes
  Animation
The animation class used to convenient production special effects.
Functions
 
LinerInterpolator(factor, lower, upper)
Linear interpolator
source code
 
RandomInterpolator(base, offset, *args)
Random interpolator
source code
Function Details

LinerInterpolator(factor, lower, upper)

source code 

Linear interpolator

Parameters:
  • factor - the current factor
  • lower - the init lower value
  • lower - the init upper value
Returns:
the calculated value

RandomInterpolator(base, offset, *args)

source code 

Random interpolator

Parameters:
  • base - the base value used to calculate result value
  • offset - the offset apply to base.
Returns:
the random value based on 'base' and 'offset'