Hi, jilu- It's much easier than that. Rotate transformations allow the author to specify the center of rotation.
<svg> <circle id='center-1' cx='150' cy='150' r='5' fill='red'/> <circle id='center-2' cx='250' cy='150' r='5' fill='blue'/> <circle id='center-3' cx='250' cy='250' r='5' fill='green'/> <line id='line_1' x1='150' y1='150' x2='250' y2='150' stroke='orange' stroke-width='3' fill='none' stroke-linecap='round'> <animateTransform attributeType='XML' attributeName='transform' type='rotate' from='0,150,150' to='360,150,150' begin='0s' dur='5s' repeatCount='indefinite'/> </line> <line id='line_2' x1='150' y1='150' x2='250' y2='150' stroke='cornflowerblue' stroke-width='3' fill='none' stroke-linecap='round'> <animateTransform attributeType='XML' attributeName='transform' type='rotate' from='0,250,150' to='-360,250,150' begin='0s' dur='5s' repeatCount='indefinite'/> </line> </svg> Regards- Doug doug . schepers @ vectoreal.com www.vectoreal.com ...for scalable solutions. J�r�me Tricand de la Goutte wrote: | | | Hi jilu, | | If I understand well, you want to kepp l1 and l2 attached... | If so, use a structure like | <g id="FirstRotation" transform="your rotation string for L1"> | <... description of l1 > | <g id="SecondRotation transform="your rotation string for L2"> | <... description of l2 > | </g> | </g> | | I'm not familiar with rotation, but I think that when you | define a rotation, the center of the rotation is the | upper-left corner of the bouding box. So to set the center | (x,y) of a rotation, you must translate your object of (-x, | -y), rotate, then translate of (x,y) again to get the right place. | | Hope it helps | | | | J�r�me Tricand de la Goutte | | Soci�t� Logatique | 50 rue Marcel Dassault | 92100 Boulogne-Billancourt | | 01 46 21 59 59 | | | | jilusan wrote: | | >hello, | > | >i would like to animate (for playing) something with 2 arms. | > | >CR1, CR2 are two coordinates system. | > | >i would like that the first arm rotates aroud CR1 the second arm | >rotates around CR2 | > | > | > CR1 l1 CR2 | > 0----------0 | > | | > | l2 | > | | > 0 | > | > | >do you have any idea (example maybe) for doind such thing ? | > | >thanks, | > | >jilu | > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.4 - Release Date: 2/1/2005 ----- 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/ <*> 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/

