ReferenceBehaviorsFunction
scale()
Scales a particle in and out.
function scale( inDuration: number, outDuration: number, ease?: Easing,): Behavior;Creates a behavior that grows a particle from 0 to its sampled size and shrinks it back to 0 over the specified durations.
The growing takes place during the first inDuration seconds of a particle’s lifetime, while
the shrinking happens during the last outDuration seconds of the particle’s lifetime. The
supplied easing is applied forwards when growing, and in reverse when shrinking.
Parameters
Section titled “Parameters”inDurationnumberThe duration in seconds it takes for the particle to grow from 0 to its sampled size, or 0 if it should start at its sampled size.
outDurationnumberThe duration in seconds it takes for the particle to shrink back to 0, or 0 if it should end at its sampled size.