I hereby claim:
- I am ivanreese on github.
- I am ivanreese (https://keybase.io/ivanreese) on keybase.
- I have a public key whose fingerprint is F20A F9B7 B705 9826 BEE6 3A83 9FE5 FEBF ABA8 51C5
To claim this, I am signing this object:
# Pass this function an array of points from http://wtcurve.surge.sh | |
# and a value between 0 and 1, to get an eased result. | |
bezierEase = (points, goal)-> | |
a = 0 | |
b = 1 | |
p = null | |
attempts = 0 | |
while attempts++ < 20 # Set a reasonable upper limit on time spent finding the right result | |
mid = (a + b)/2 | |
p = evalCurve points, mid |
I hereby claim:
To claim this, I am signing this object: