(zero, ratio, min, max)
| 46 | }; |
| 47 | |
| 48 | function scale(zero, ratio, min, max) { |
| 49 | return function(c) { |
| 50 | return Lib.constrain((c - zero) * ratio, min, max); |
| 51 | }; |
| 52 | } |
| 53 | |
| 54 | function constrain(min, max) { |
| 55 | return function(c) { return Lib.constrain(c, min, max);}; |
no outgoing calls
no test coverage detected
searching dependent graphs…