Bryan Hoyt | Brush Technology wrote:
That particular oddity has annoyed me a few times. I for one like your way much better, Juan. But I guess I'd be in favour of sticking with the standards if the standards people have no room for movement. Usually safest ;-)
Thanks. Yes, I agree. Anyway I think the discussion makes sense.
There's a related oddity in Inkscape's rendering (and probably the standards), the fact that the border is drawn so that it overlaps the fill rather than surrounding it. To be honest, the idea of the stroke surrounding the fill (non-overlapping) makes a lot more intuitive sense to me, especially when you've got thick and/or translucent strokes like Juan's example.
So you mean that (for example) in a rectangle with width 20 and height 10, and stroke-width 10, then the fill should be 20x10, and the fill + border should be 40x30? I believe that saying that the shape specifies the center of the nib of the pen used to draw the stroke is intuitive and makes sense. To me the current resulting sizes are ok. The only thing that I don't like is the effect with translucent stroke.
Is somebody able to explain why the overlapping method is used, either for intuitive reasons or technical reasons? Or is it just an arbitrary choice by those who write the standards?
- Bryan
Well, I tried :) Cheers, Juan Vuletich
-- PS. Check out the Brush newsletter: *Subscribe or read our previous newsletters* http://brush.co.nz/articles
Bryan Hoyt, /Web Development Manager/ -- Brush Technology *Ph:* +64 3 942 7833 *Mobile:* +64 21 238 7955 *Web:* brush.co.nz http://brush.co.nz/ On Sat, Jun 5, 2010 at 01:48, Juan Vuletich <juan@...2357... mailto:juan@...2357...> wrote:
Hi Folks, Inkscape and other SVG renderes draw shapes by drawing first the fill, and then drawing the border on top. As Ivan noted recently (in ""), at http://dev.w3.org/SVG/modules/vectoreffects/master/SVGVectorEffectsPrimer.html and http://www.w3.org/TR/SVGTiny12/render.html#PaintingShapesAndText , it is clear that the standard requests to do that. I didn't know that, and took the time to render this svg: http://www.jvuletich.org/Morphic3/rects.svg like this: http://www.jvuletich.org/Morphic3/rectsInM3.png . It is a bit more complicated, but I feel it is better. What do you think? Should I simplify my code and just draw one over the other? Or should the standard be changed, and Inkscape and other renderers do what I did? Thanks, Juan Vuletich ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net <mailto:Inkscape-devel@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/inkscape-devel
No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.819 / Virus Database: 271.1.1/2918 - Release Date: 06/04/10 15:25:00