http://gizma.com/easing/ for the code which I translated into Scratch. Move your mouse around. I first saw this in @ScratchinJoJo's intro and I liked it. So it took me a while to figure it out.