pixi-wheels

SpinProfile

pixi-wheels


pixi-wheels / index / SpinProfile

Interface: SpinProfile

Defined in: config/types.ts:253

A spin’s timing. Speeds are degrees per second; times are milliseconds. Only spinSpeed is required; the rest fall back to DEFAULT_PROFILE. SpinPresets ships a few; builder.speed(name, profile) registers your own.

Properties#

PropertyTypeDescriptionDefined in
accelerationEase?EaseEase of the acceleration. Default 'power2.in'.config/types.ts:259
accelerationMs?numberTime to reach cruise speed from rest. Default 900.config/types.ts:257
maxTurns?numberMost full turns the wheel makes while stopping. Default 8.config/types.ts:275
minCruiseMs?numberThe stop may not begin before this much time at cruise speed. Default 0.config/types.ts:263
minimumSpinTime?numberThe stop may not begin before this much time has passed since spin(). Default 0.config/types.ts:261
minTurns?numberFewest full turns the wheel makes while stopping. Default 1.config/types.ts:273
skipDuration?numberDuration of the fast-forward when the player skips. Default 450.config/types.ts:277
spinSpeednumberCruise speed in deg/s. 540 is one and a half turns a second.config/types.ts:255
stopDuration?numberHow long the deceleration should take. Default 4200. 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?EaseEase of the deceleration. Must be an ease-out. Default 'power3.out'.config/types.ts:271