I have written some page turning software simulating a magazine. Currently the speed of the page turning is linear, and I want to make it more realistic with acceleration and deceleration.
At the start of the animation it should be slow, half way through it should have reached max speed, then it returns to a slow speed by the end of the animation.
Someone I knew told me it can be done if you know what percentage of the animation you are through, using sine or something similar!
So given a percentage representing how far through the animation you are, how can you set the speed?
Answers in pseduo or javascript welcome :)
function speed(percentageThroughAnimation)
{
return ?????
}