ck
Class EasingBounceOut

Object
  extended by common:Generic
      extended by ck:Easing
          extended by ck:EasingBounceOut

class 
Easing:EasingBounceOut



Ultra Fractal Source

Toggle UF Source Code Display

 class EasingBounceOut (ck.ulb:Easing){
 protected:
        float func doEase(float t)
              float x=t*(#PI*@turns+#PI/2);
              int segment=round(x/#PI);
              return 1-exp(-segment/2)*abs(cos(x));
       endfunc
 default:
         title = "Bounce Out"
         float param turns
         caption = "# Bounces"
         default=2
   endparam
 
 }
 


Constructor Summary
EasingBounceOut()
           
 
Method Summary
protected  float doEase(float t)
           
 
Methods inherited from class ck:Easing
Ease
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

EasingBounceOut

public EasingBounceOut()
Method Detail

doEase

protected float doEase(float t)
Overrides:
doEase in class Easing