Re: [svg-developers] Divide objects below the specified path

2011-01-08 Thread ddailey
Hi Jan, I'm not sure if I quite understand your scenario, but a couple of quick responses: first of all a path can have multiple M subcommands: path d=M 100,350 300,100 500,350 z M 250,320 250,220 350,220 350,320 z fill=#ff8 stroke=black stroke-width=15 fill-rule=evenodd/ draws a triangle

RE: [svg-developers] Divide objects below the specified path

2011-01-08 Thread honyk
Hi David, I'm not sure if I quite understand your scenario Please see my simplified use case http://skibob.dobruska.cz/other/clip.svg - I'd like to have that triangle transparent. It is impossible to do it with a single path (with multiple contours) as I need different fill styles of individual

Re: [svg-developers] Divide objects below the specified path

2011-01-08 Thread ddailey
Perhaps something like this is what you have in mind accomplishing: I've made your triangle black and put it in a mask with a big white rectangle underneath I had to mess with coordinates a bit to get it all to line up. The mask is then applied to your group. In this way masks can be

Re: [svg-developers] Divide objects below the specified path

2011-01-08 Thread ddailey
Ooops! I forgot to paste in the code: mask id=Ma rect x=0 y=0 height=300% width=100% fill=white/ path transform=translate(-450, 0) scale(2.2,1) id=triangle d=m 354.28571,470.30504 -22.1705,38.4 h 44.341 z fill=black / /mask image