Oscillate (of Cycle)

class Oscillate

Defined in Oscillate.sc.

A cycler that oscillates back and forth between cels in a loop. See the init method for information on parameters.

Sample usage:

; Make the star cycle its animation back and forth.
(star setCycle: Oscillate -1)
class diagram

Properties

Inherited from Cycle:

Property Description
name  
client  
caller  
cycleDir  
cycleCnt  
completed  

Defined in Oscillate:

Property Description
howManyCycles  

Methods

init(theClient theHowManyCycles theCaller)
Parameters:
  • theClient (heapPtr) – The Prop to which this is attached.
  • theHowManyCycles (number) – The number of times to cycle, or -1 to cycle indefinitely.
  • theCaller (heapPtr) – Optional object to be cue()’d when the cycle is complete.
doit()
cycleDone()