SpinProfile
pixi-wheels / index / SpinProfile
Interface: SpinProfile
Defined in: config/types.ts:253
A spin’s timing. Speeds are degrees per second; times are milliseconds.
SpinPresets ships a few; builder.speed(name, profile) registers your own.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
accelerationEase? | Ease | Ease of the acceleration. Default 'power2.in'. | config/types.ts:259 |
accelerationMs | number | Time to reach cruise speed from rest. | config/types.ts:257 |
maxTurns | number | Most full turns the wheel makes while stopping. Default 8. | config/types.ts:275 |
minCruiseMs | number | The stop may not begin before this much time at cruise speed. | config/types.ts:263 |
minimumSpinTime | number | The stop may not begin before this much time has passed since spin(). | config/types.ts:261 |
minTurns | number | Fewest full turns the wheel makes while stopping. Default 2. | config/types.ts:273 |
skipDuration | number | Duration of the fast-forward when the player skips. Default 450. | config/types.ts:277 |
spinSpeed | number | Cruise speed in deg/s. 540 is one and a half turns a second. | config/types.ts:255 |
stopDuration | number | How long the deceleration should take. The planner picks the number of extra turns that gets closest, then matches the ease’s start to the cruise speed, so the actual value differs a little. | config/types.ts:269 |
stopEase? | Ease | Ease of the deceleration. Must be an ease-out. Default 'power3.out'. | config/types.ts:271 |