Re: [SMIL30 FWD] calcMode, keyTimes and examples

"Dr. Olaf Hoffmann" <[email protected]>
Newsgroups gmane.comp.web.smil
Organization Atomare Prozesse - Universität Hannover
Message-ID <[email protected]>
> 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):
dur="10s"
values="10;20;20"
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)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.