Here’s a simple function you can use for easing motions, just set your “time” variable to go from 0 to 1.
The ‘g’ adjusts the amount of easing.
In the animation above I used the function like this:x = 300 * ease(time, g);float ease(float p, float g){ if (p < 0.5) return 0.5 * pow(2*p, g); else return 1 - 0.5 * pow(2*(1 - p), g);}
Edit: the “if” statement was missing the part after ’<’ because html ingored that character thinking it was a part of html :S
atintofnothing liked this
adrianblanche liked this
comamoruniverso liked this vj4thwall-blog liked this
ditchcat liked this
c0llante liked this
djbadbadger liked this
egelor liked this
myfavorites2016 reblogged this from patakk motherboredwithhumans reblogged this from minus-hyphen
kitch-n-sync liked this minus-hyphen reblogged this from p5art
minus-hyphen liked this
omonlinetika liked this glitchythoughts liked this
decadentbananadaze liked this
importantfarmcalzonebagel liked this hankyou liked this
propersluts liked this
sciencelifeny reblogged this from patakk
arlanbr liked this mudheadreynolds liked this
imjstarndmstrngr reblogged this from patakk
imjstarndmstrngr liked this
templodespejos liked this
ca1iban liked this
badbugs reblogged this from patakk
superkrampusblog liked this turkagfx liked this
e-faux-primary liked this
eatingaesthetics liked this
plutomond liked this
boatsandmermaids liked this just-an-inside-joke liked this
mindbythom liked this
isaveyourtime reblogged this from patakk clayscosmos liked this
mardybumsconfessions liked this
mimiwoofwoof liked this
8h00chk4l4nd400-blog liked this
opossumpitcher liked this
patakk posted this
- Show more notes