Flips a percentage-scale number: 1 - v.
1 - v
The utility of this function is that it sanity-checks that v is in 0..1 scale.
v
flip(1); // 0flip(0.5); // 0.5flip(0); // 1 Copy
flip(1); // 0flip(0.5); // 0.5flip(0); // 1
Flips a percentage-scale number:
1 - v
.The utility of this function is that it sanity-checks that
v
is in 0..1 scale.