- From: Tobias Reif <tobiasreif@pinkjuice.com>
- Date: Sat, 28 Feb 2004 11:28:55 +0100
- To: www-svg@w3.org
Hi Cameron On Sat 2004-02-28 Cameron McCormack wrote: > My example would be equivalent to > > <rect x="0" y="0" width="100" height="100"> > <!-- move 20 units every second --> > <animate attributeName="x" from="0" to="2000" begin="0s" dur="100s"/> > </rect> > > except that with the SMIL animation I have to stop the animation > some time (because interpolated animations aren't possibly if the > animation is indefinite). Really? I may have misunderstood you again, but this seems to do what you want: <svg xmlns="http://www.w3.org/2000/svg" version="1.1"> <rect width="100" height="100"> <animate attributeName="x" by="20" dur="1s" repeatCount="indefinite" accumulate="sum"/> </rect> </svg> > > If the code instead says "the animated object should be at 20 * x > > units after x seconds, animate with any frame rate you like > > (redraw as often as you like as long as ($current_position/20 == > > $seconds_passed))" then that's something else. > > Yes that's how it is. :-) But it became clear that both the code and the comment are prone to be misunderstood when read without explanation, perhaps clearer expressions and syntax can be chosen. I find the SMIL version extremely clear, for example. Tobi -- Vim users, don't forget to http://iccf-holland.org/donate.html
Received on Saturday, 28 February 2004 05:28:16 UTC