Returns a function that scales values in a range, by default on 0..1 scale.
const range = { min: 10, max: 20 }const s = rangeScaler(range);s(15); // 0.5 Copy
const range = { min: 10, max: 20 }const s = rangeScaler(range);s(15); // 0.5
Range to scale on
Output range max. Default: 1
Output range min. Default: 0
Optional
Easing function: Default: none
Whether input values should be clamped if they exceed range. Default: true
Returns a function that scales values in a range, by default on 0..1 scale.