# ScaleTo (of `Scaler`)

class `ScaleTo`

  Defined in ScaleTo.sc.

  ScaleTo allows you to grow or shrink an object over time.

  Example usage:

      // Scale the portal down to 50% of its normal size.
      (portal setScale: ScaleTo 50)

## Properties

Inherited from `Scaler`:

Property | Description
--- | ---
client |
frontY |
backY |
frontSize |
backSize |
slopeNum |
slopeDen |
const |
name |

Defined in ScaleTo:

Property | Description
--- | ---
caller |
endScale |
step |
waitCount |
scaleDir |
saveWaitCount |

## Methods

`init`(theClient theEndScale [theCaller])

`init`(theClient theEndScale theStep [theCaller])

`init`(theClient theEndScale theStep theWaitCount [theCaller])

  Initializes the ScaleTo.

  Parameters: | theClient (heapPtr) – The `Prop` to which this is attached. theEndScale (number) – The final scale of the Prop in percentage of full size. theStep (number) – The amount the scale increases or decreases each cycle. Smaller values are smoother and slower. theWaitCount (number) – The number of ticks to wait before the scaling begins. theCaller (heapPtr) – The object that will be cue()’d when the final scale size is reached.

`doit`()

`dispose`()