Skip to main content

Function: rushRegion()

rushRegion(rushStart, rushEnd, normalSpeed, rushedSpeed): SpeedFunction

Defined in: animation/speed/index.ts:276

Speed that rushes through (speeds up) a specific portion of the animation.

Parameters

rushStart

number

Start of the rushed region (0-1)

rushEnd

number

End of the rushed region (0-1)

normalSpeed

number = 1

Speed outside the rushed region

rushedSpeed

number = 3

Speed during the rushed region (typically > normalSpeed)

Returns

SpeedFunction