W3C home > Mailing lists > Public > www-svg@w3.org > January 2003

Re: <animateMotion> xlink to polyline?

From: Dean Jackson <dean@w3.org>
Date: Sun, 26 Jan 2003 22:46:14 +1100
To: Krg9263@netscape.net
Cc: www-svg@w3.org
Message-ID: <20030126114614.GF32505@grorg.org>

On Fri, 24 Jan 2003, Krg9263@netscape.net wrote:

> 
> I have a very simple <animateMotion> question. I would like to 
> create an animation by Xlink 'ing. However, I can only find implementations that Xlink to paths while I would like to xlink to a polyline. Is this possible? I can not seem to get it to work? If not is there a way around this?


No, you can only animate along a path element, not a 
polyline. Sorry!

You'll have to convert into a path.

Dean

> 
> 
> <rect x="-5" y="-5" width="10" height="10" fill="red">
>                <animateMotion dur="10s" repeatCount="indefinite">
>                    <mpath xlink:href="#test2"/>
>                </animateMotion>
>            </rect>
> 
> 
> 
> <polyline id="test2" points="184 262 167 256 154 253 134 248 112 242 92 236 60 226 63 231 70 233 70 234 70 233 91 240 114 248 120 251 120 252 121 256 123 261 151 269 164 273 179 277 200 285 230 298 248 304 260 310 272 314 284 315 297 316 304 317 312 317 314 306 316 292 319 280 352 279 363 278 389 277 403 267 409 264 418 258 422 255 427 250 429 245 431 237 435 218 438 207 442 200 481 207 487 208 487 209 487 208 501 210 541 216 542 221 542 235 538 260 534 282 515 281 " stroke="lime" stroke-opacity="0.6" stroke-width="4.0" fill="none"/>
> 
> 
> __________________________________________________________________
> The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp 
> 
> Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
Received on Sunday, 26 January 2003 06:46:26 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:24 GMT