On Thu, 01 Jan 2009 12:53:41 +1100, Kenneth Nellis <[email protected]> wrote:
> I have a SMIL animation that I'm having trouble making do what I > want, if it is even possible. I've reduced the problem to the SVG at > the following URL where a square changes color from white to black > and back to white. I want it to keep changing back and forth. > > homepage.mac.com/nellisks/yahoo/groups/svg-developers/smil.svg You have two animations. The first one goes white to black over 5 seconds, and repeats. This means you get white...greying...black and then jump back to white and start again. The second one only runs once, going from black to white. If, instead of from and to, you have values="white;black;white" in the first one (and drop the second) it should work. A simplified version of your testcase with the changes: <?xml version="1.0" encoding="UTF-8" ?> <svg xmlns="http://www.w3.org/2000/svg"> <rect x="100" y="100" width="200" height="200" > <animateColor attributeName="fill" attributeType="XML" values="white;black;white" begin="0s" dur="5s" repeatCount="indefinite" /> </rect> </svg> (I tested it with the use and everything you originally had and it also works). cheers Chaals -- Charles McCathieNevile Opera Software, Standards Group je parle français -- hablo español -- jeg lærer norsk http://my.opera.com/chaals Try Opera: http://www.opera.com ------------------------------------ ----- To unsubscribe send a message to: [email protected] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ----Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/svg-developers/join (Yahoo! ID required) <*> To change settings via email: mailto:[email protected] mailto:[email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

