Boost logo

Boost :

Subject: Re: [boost] [tweener] Preliminary Submission
From: Michael Marcin (mike.marcin_at_[hidden])
Date: 2013-03-04 22:16:20


Gottlob Frege wrote:
>
> And while I'm here: how about interpolators that only have a fixed value
> at one end or the other - ie count down or count up timers/clocks/counters.
> Maybe not really interpolators, but still value-animators, and useful to
> be able to have these work within the system.
>

I think in HOTween you could accomplish this with something like:

HOTween.To(myObject, 1, new TweenParms()
// tween fieldName of myObject by 1
// relative to its current value (i.e. x=x+1)
  .Prop("fieldName",1,true)
// loop infinitely
// incremental loops (i.e. x to y, y to y+*y-x) and so on)
  .Loops(-1,LoopType.Incremental) );


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk