Scales a percentage-scale number, ie: v * t.
v * t
The utility of this function is that it sanity-checks that both parameters are in the 0..1 scale.
Parameters can also be a function that takes no parameters and returns a number. It will be invoked when proportion is called.
proportion
Value
Scale amount
Scaled value
Scales a percentage-scale number, ie:
v * t
.The utility of this function is that it sanity-checks that both parameters are in the 0..1 scale.
Parameters can also be a function that takes no parameters and returns a number. It will be invoked when
proportion
is called.