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. 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
accelerationMsnumberTime to reach cruise speed from rest.config/types.ts:257
maxTurnsnumberMost full turns the wheel makes while stopping. Default 8.config/types.ts:275
minCruiseMsnumberThe stop may not begin before this much time at cruise speed.config/types.ts:263
minimumSpinTimenumberThe stop may not begin before this much time has passed since spin().config/types.ts:261
minTurnsnumberFewest full turns the wheel makes while stopping. Default 2.config/types.ts:273
skipDurationnumberDuration 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
stopDurationnumberHow 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?EaseEase of the deceleration. Must be an ease-out. Default 'power3.out'.config/types.ts:271