Constructors
constructor
- new Dynamic(fn, config): Dynamic
Parameters
- fn: ((val: number) => void)
- config: {
defaultValue: number;
max: number;
min: number;
wrap: boolean;
}defaultValue: number
max: number
min: number
wrap: boolean
Accessors
current
- get current(): number
Returns number
- set current(current): void
Returns void
Methods
goto
- goto(position, speedMult?): void
Parameters
- position: number
- speedMult: number = 1
Returns void
roll
- roll(invert?, speedMult?): void
Parameters
- invert: boolean = false
- speedMult: number = 1
Returns void
setSpeed
- setSpeed(speed): void
Returns void
setValue
- setValue(value): boolean
Returns boolean
step
- step(step, speedMult?): void
Parameters
- step: number
- speedMult: number = 1
Returns void
Represents a variable that can dynamically change with time (using requestAnimationFrame)