Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Education > Math > Re: help with a...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 6 Topic 4145 of 4349
Post > Topic >>

Re: help with acceleration and deceleration

by Bill <Bill@[EMAIL PROTECTED] > Jul 2, 2008 at 04:02 PM

Using my existing formula if I begin with a scale value of 0.1 and end 
up with a scale value of 1.0 over the course of 10 seconds, the scale 
values would increment .1 every second ( .1, .2, .3, .4, .5, .6, .7, .8, 
..9, 1.0 ). I would like to modify the formula so that the change in 
value from one call to the next is not linear. I am trying to produce an 
ease in and ease out effect.


Bill wrote:
> I use the following formula in my application to scale an image over a 
> period of time.
> 
> s = ( startScale + ( elapsedTime / duration ) * ( endScale - startScale 
> ) ) )
> 
> startScale = initial scale value
> endScale = final scale value
> elapsedTime = time elapse since we started
> duration = scaling occurs over this period of time
> 
> The result is linear and I would prefer to have some acceleration during

> the beginning and deceleration at the end so that scaling gradually 
> increases then decreases during the duration period. Can anyone please 
> suggest something better? Ideally I would be able to adjust the amount 
> of acceleration and deceleration values, thanks.
> 
>
 




 6 Posts in Topic:
help with acceleration and deceleration
Bill <Bill@[EMAIL PROT  2008-07-01 23:10:27 
Re: help with acceleration and deceleration
Bill <Bill@[EMAIL PROT  2008-07-02 16:02:30 
Re: help with acceleration and deceleration
Mensanator <mensanator  2008-07-02 16:27:53 
Re: help with acceleration and deceleration
Odysseus <odysseus1479  2008-07-04 06:16:59 
Re: help with acceleration and deceleration
Bill <Bill@[EMAIL PROT  2008-07-07 15:34:33 
Re: help with acceleration and deceleration
Odysseus <odysseus1479  2008-07-08 02:19:56 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 5:23:56 CST 2008.