Squeak Class Documentation category index | class index  
 
WonderlandStyle
  category: Balloon3D-Wonderland Misc
  superclass: Object
  subclasses:

The WonderlandStyle class implements different animation styles. The four styles this class provides are gently (slow-in, slow-out), beginGently (slow-in), endGently (slow-out), and abruptly (linear).

Animations use these styles through blocks of the form:

[ :elapsed :duration | WonderlandStyle beginGentlyAfter: elapsed outOf: duration ]

The intention is that using this mechanism the user can specify arbitrary styles using blocks and pass them to animations.

instance methods
  object fileIn
 

class methods
  class initialization
  initialize

  generate parameters
  abruptlyAfter:outOf:
beginGentlyAfter:outOf:
endGentlyAfter:outOf:
gentlyAfter:outOf:
oneAfter:outOf:

  instance creation
  new

  private
  gently:lowerBound:upperBound:

instance methods
  object fileIn top  

class methods
  class initialization top  
 

initialize

Add the style constants gently, beginGently, endGently, and abruptly to the WonderlandConstants dictionary


  generate parameters top  
 

abruptlyAfter:outOf:

Returns the proportion done for an Abrupt animation style after elapsed seconds (out of duration seconds) have elapsed.


 

beginGentlyAfter:outOf:

Returns the proportion done for an animation using the BeginGently style after elapsed seconds (out of duration seconds).


 

endGentlyAfter:outOf:

Returns the proportion done for an animation using the EndGently style after elapsed seconds (out of duration seconds).


 

gentlyAfter:outOf:

Returns the proportion done for an animation using the Gently style after elapsed seconds (out of duration seconds).


 

oneAfter:outOf:

Returns the proportion of Animation done using an instantaneous style - this is also 1.0.


  instance creation top  
 

new

Users shouldn't create any instances of this class, so this method throws an error if they try.


  private top  
 

gently:lowerBound:upperBound:

This method converts a linear proportion done to a slow in - slow out proportion. If x is less than A then the animation is in the slow in part, while if x is greater than B then the animation is in the slow out part.