[PD] letters that move to their correct position to form readable text

Claude Heiland-Allen claudiusmaximus at goto10.org
Fri Aug 14 10:55:14 CEST 2009

info at timvets.net wrote:
> Hi all,
> I'm looking for a way to do this:
> Show text where the letters are positioned randomly across the screen.
> Then gradually move the letters towards their correct position, to show
> the original, readable text...
> any suggestions?
> Thanks!
> Tim

IIR: next position := current position * 0.95 + 0.05 * target position
   (will never reach target exactly)

FIR: current position := start position * (1-t) + t * target position
   (with t in 0 .. 1)

You need one of the above for each coordinate of each letter, so I 
suggest storing the information in arrays (or data structures) and
looping through them.


More information about the Pd-list mailing list