W3C home > Mailing lists > Public > www-smil@w3.org > April to June 2007

Re: [SMIL30 FWD] calcMode, keyTimes and examples

From: Dr. Olaf Hoffmann <Dr.O.Hoffmann@gmx.de>
Date: Tue, 29 May 2007 19:45:33 +0200
To: "Patrick Schmitz" <cogit@ludicrum.org>, www-smil@w3.org
Message-Id: <200705291945.33507.Dr.O.Hoffmann@gmx.de>

> I think at one point we had some idea about the last value of 1 being
> implied, and then we made it tighter. This may be cruft left over from
> that, but I want to be sure that we do not have anything left over that
> conflicts. I will take a closer look at this tonight.
> First thought is that to produce what the text describes, the code should
> say:
>    <animate attributeName="foo" from="10" to="20"
>       dur="10s" keyTimes="0.0; 0.7; 1"
>       calcMode="spline" keySplines=".5 0 .5 1 1 1" />

No, 3.2.3:
'If a list of keyTimes is specified, there must be exactly as many 
values in the keyTimes list as in the values list.'

from-to are two values, not three ;o)

And the there is always a multiple of 4 numbers in the
keySpline list, here 4 for from-to or 8 for three keyTimes:

'Each control point description is a set of four floating point values: x1 y1 
x2 y2, describing the Bezier control points for one time segment.'

This may work (but did not test it and does not use from-to anymore):
keyTimes="0.0; 0.7; 1"
calcMode="spline" keySplines=".5 0 .5 1;0 0 1 1"

(with from-to this is possible in SVG with animateMotion and keyPoints,
not available in SMIL)

(don't panic, we are with you, and after so long time having these 
things in the recommendation, there is no need to hurry now ;o)
Received on Tuesday, 29 May 2007 17:49:18 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:34:26 UTC