Constructors
constructor
- new MultiDynamic<T>(fn, dynamics): MultiDynamic<T>
Parameters
- fn: ((val: Record<keyof T, number>) => void)
- (val): void
Parameters
- val: Record<keyof T, number>
Returns void
- dynamics: T
Accessors
current
- get current(): Record<keyof T, number>
Returns Record<keyof T, number>
Methods
goto
- goto(positions, speedMult?): void
Parameters
- positions: Partial<Record<keyof T, number>>
- speedMult: number = 1
Returns void
roll
- roll(rolls, speedMult?): void
Parameters
- rolls: Partial<Record<keyof T, boolean>>
- speedMult: number = 1
Returns void
setSpeed
- setSpeed(speed): void
Returns void
setValue
- setValue(values): boolean
Parameters
- values: Partial<Record<keyof T, number>>
Returns boolean
step
- step(steps, speedMult?): void
Parameters
- steps: Partial<Record<keyof T, number>>
- speedMult: number = 1
Returns void
Wrapper for multiple Dynamic evolving together