Organize support files and simplify imports

This commit is contained in:
be5invis 2021-07-15 21:14:08 -07:00
parent 70f41352c1
commit ef203af85a
178 changed files with 61 additions and 269 deletions

View file

@ -3,9 +3,6 @@
function mix(a, b, p) {
return a + (b - a) * p;
}
function ratio(l, r, m) {
return l === r ? 0 : (m - l) / (r - l);
}
function barmixL(l, r, b, p) {
return l > r ? barmixL(r, l, b, p) : l + b + p * (r - l - b * 3);
}
@ -38,7 +35,6 @@ function bez3(a, b, c, d, t) {
}
exports.mix = mix;
exports.ratio = ratio;
exports.barmixL = barmixL;
exports.barmixM = barmixM;
exports.barmixR = barMixR;