We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › interpolation or smoothing for stoping movements
Page Index Toggle Pages: 1
interpolation or smoothing for stoping movements (Read 481 times)
interpolation or smoothing for stoping movements
May 10th, 2009, 3:05pm
 
Hi , ive made a program that animates spheres, the program can be controlled with the keyboard, i press a key and the movements of the spheres  begins then i press another key and  movements stop. When i stop the movements of the spheres i would like to have some kind of smooth or interpolation so it doesnt stop in a sudden way , i would like that when i press the stop key the sphere begins to move slow and more slow until it stops. which is the best way to do this in processing?
is there something like a smooth function?

thanks

M.
Re: interpolation or smoothing for stoping movements
Reply #1 - May 10th, 2009, 3:10pm
 
Penner Easing is the thing to go with...
i did quick search and found this great library. As far as i know its not yet added to the library section but it really should :

http://jesusgollonet.com/processing/pennerEasing/

Re: interpolation or smoothing for stoping movements
Reply #2 - May 11th, 2009, 1:54am
 
For the record, Shapetween also allows easing.
Page Index Toggle Pages: 1