W3C home > Mailing lists > Public > www-svg@w3.org > February 2004

Re: Third release of Constraint SVG browser

From: Tobias Reif <tobiasreif@pinkjuice.com>
Date: Sat, 28 Feb 2004 11:28:55 +0100
To: www-svg@w3.org
Message-ID: <20040228102855.GA3142@linux>

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).


I may have misunderstood you again, but this seems to do what you

<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
  <rect width="100" height="100">
      attributeName="x" by="20" dur="1s"
      repeatCount="indefinite" accumulate="sum"/>
> > 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.


Vim users, don't forget to
Received on Saturday, 28 February 2004 05:28:16 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:46:58 UTC