Last active
May 28, 2020 17:10
-
-
Save djave-co/d3c2723b96caf1d9e78b3a5a192dd912 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const lerp = (v0, v1, t) => { | |
return (1 - t) * v0 + t * v1; | |
} | |
const scale = (num, in_min, in_max, out_min, out_max) => { | |
return ((num - in_min) * (out_max - out_min)) / (in_max - in_min) + out_min; | |
}; | |
y=1-x^{3} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment