Osc (of Cycle)

class Osc

Defined in Osc.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(Osc -1))

Properties

Inherited from Cycle:

Property Description
client  
caller  
cycleDir  
cycleCnt  
completed  

Defined in Osc:

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()