fix(#906): ice to follow expected size, reduce ice elements in general

This commit is contained in:
Azgaar 2023-02-25 16:01:22 +04:00
parent 89d61fda5f
commit f018256f7a
5 changed files with 29 additions and 27 deletions

View file

@ -20,3 +20,7 @@ function lim(v) {
function normalize(val, min, max) {
return minmax((val - min) / (max - min), 0, 1);
}
function lerp(a, b, t) {
return a + (b - a) * t;
}