Constructor
new NumberGradient(values, smooth)
Create a new number gradient.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
values | Object.<number, number> | Values at time intervals | |
smooth | boolean | false | Whether the track should start and end smoothly/gradually |
Methods
get(progress) → {number}
Get the value at a specified point.
Parameters:
Name | Type | Description |
---|---|---|
progress | number | Overall animation progress (0 - 1) |
Returns:
Number at current point
- Type:
- number