tamsvg wrote:
> I've paint 4 rectangles (but I did it with polylines!)The 4 
> rectangles are overlapping each other. How can I blend them, so that 
> it looks like one element?
> 
> Here's my code:
> 
> <?xml version="1.0" encoding='ISO-8859-1' ?>
> 
> <svg width="800" height="800" xmlns="http://www.w3.org/2000/svg";>
> 
>    <polyline points="90,90 110,90 110,510 90,510 90,90" stroke-
> width="1" fill="none" stroke="black" filter="url:(#compose)" />
>    <polyline points="90,490 90,510 710,510 710,490 90,490" stroke-
> width="1" fill="none" stroke="black" />
>    <polyline points="690,510 710,510 710,90 690,90 690,510" stroke-
> width="1" fill="none" stroke="black" />
>    <polyline points="710,90 710,110 90,110 90,90 710,90" stroke-
> width="1" fill="none" stroke="black" />
> </svg>
> 
> Can anybody help me?
> Katharina

I believe that you have to do the maths yourself, ie. SVG 1.1 has 
nothing to join/blend/merge/solder shapes.
SVG 1.2 will have this feature.

As always in this kind of question, I point to Kevin Lindsey site 
<http://www.kevlindev.com/geometry/index.htm> which has a comprehensive 
set of JavaScript routines for geometry maths applied to SVG.

Well, I am not sure you will find the solution of your problem here, but 
the maths for rectangle intersections are quite simple, I think.

If really you are lost, I will try and do the maths, it is an 
interesting problem.

Note: Since you are making closed shapes, maybe you can specify them 
with polygon, with fill="none". This avoid to repeat the initial point 
as last point.

-- 
Philippe Lhoste
--  (near) Paris -- France
--  Professional programmer and amateur artist
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --


------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/1U_rlB/TM
--------------------------------------------------------------------~-> 

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



Reply via email to