Re: [SMIL30 FWD] calcMode, keyTimes and examples

Sjoerd Mullender <[email protected]>
Newsgroups gmane.comp.web.smil
Message-ID <[email protected]>
Since according to the text we're trying to show that keyTimes and
keySplines can be used with to/from attributes, perhaps this is the
easiest way out:

<animate attributeName="foo" from="10" to="20"
     dur="10s" keyTimes="0.0; 1.0"
     calcMode="spline" keySplines=".5 0 .5 1" />

And change the accompanying text to say that the end value is reached
after 10 seconds.  We could even add an example which does what we tried
doing using a values attribute:

<animate attributeName="foo" values="10; 20; 20"
     dur="10s" keyTimes="0.0; 0.7; 1.0"
     calcMode="spline" keySplines=".5 0 .5 1; 0 0 1 1" />

On 05/29/2007 08:01 PM, Patrick Schmitz wrote:

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


-- 
Sjoerd Mullender
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.