Re: Proposals for SVG 1.2

Doug Schepers wrote:
> Well, a hexagonal pattern is not so hard... I did this one by hand:
> 
> <svg>
> <pattern id='hex' x='0' y='0' width='80' height='45.5'
> patternUnits='userSpaceOnUse' >
>    <path d='M0.5,22.75 L13,0 H40.5 L53,22.75 L40.5,45.5 H13 Z M53,22.75
> H80.5' stroke='gray' fill='none'/>
> </pattern>
> <rect x='0' y='0' width='100%' height='100%' fill='url(#hex)'/>
> 
> <path d='M0.5,22.75 L13,0 H40.5 L53,22.75 L40.5,45.5 H13 Z M53,22.75 H80.5'
> stroke='red' fill='dodgerblue'/>
> </svg>

Well done, smartly...

> There are irregular artifacts when viewed in ASV, but that's a problem with
> their pattern implementation.

That's better when zooming in.

> I don't know how hard all other patterns would be... It might be that not
> every pattern can be done in a grid. 

Well, I guess it is possible. I have a number of M.C. Escher background 
tiles (See <http://www.mcescher.com/Gallery/gallery-symmetry.html> for 
real examples of complex tilings), so I suppose you can always find a 
rectangle where the graphics warp around nicely.
Same for penrose tilings.

So we can do a SVG equivalent. But we loose the S word ;-) Semantics. 
Ie. we have to draw a partial rendition of objects: an head here, the 
body on the other side, etc. We cannot just draw a complex object, and 
make it tile nicely.

To do your hexagon tiling, you had to "cheat", ie. the pattern cannot 
rely on a pure hexagon but on a composite artifact.

> That being said, I would also like a way to introduce "planned irregularity"
> into SVG, so that you could have variations in patterns and text (in which
> alt-glyphs are used for each letter, and in placement, for
> handwriting-fonts, for example). I don't  know how such a thing could be
> done efficiently, but it would be neat if it could.

As I wrote just after the message you answered to, perhaps a switch 
based on random value would be useful for this.

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

Received on Sunday, 31 October 2004 05:44:58 UTC