RE: [SMIL30 FWD] calcMode, keyTimes and examples
"Patrick Schmitz" <[email protected]>
| Newsgroups | gmane.comp.web.smil |
|---|---|
| Message-ID | <[email protected]> |
This is why I should not have replied quickly ;) Will try again this evening. Patrick > -----Original Message----- > From: Dr. Olaf Hoffmann [mailto:[email protected]] > Sent: Tuesday, May 29, 2007 10:46 AM > To: Patrick Schmitz; [email protected] > Subject: Re: [SMIL30 FWD] calcMode, keyTimes and examples > > > > > 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)