- From: Philippe Lhoste <PhiLho@GMX.net>
- Date: Sat, 30 Oct 2004 11:32:15 +0200
- To: Doug Schepers <doug@schepers.cc>
- CC: 'Mark McKay' <mark@kitfox.com>, www-svg@w3.org
Forgot to add: To increase irregularity in patterns, it would be nice to have a random factor in SVG. One could imagine something like a switch to select which tile to choose each time one is needed. Something like: <pattern id="RandomPattern" patternUnits="userSpaceOnUse" x="0" y="0" width="100" height="100" xoffset="50" yoffset="0" viewBox="0 0 10 10" > <switch case="LinearRandom 0 100"> <case value="80"> <path d="M 0 0 L 7 0 L 3.5 7 z" fill="red" stroke="blue"/> </case> <case value="90"> <path d="M 0 0 L 7 0 L 3.5 7 z" fill="blue" stroke="red"/> </case> <case value="100"> <path d="M 0 0 L 7 0 L 3.5 7 z" fill="green" stroke="yellow"/> </case> </switch> </pattern> Pseudo-code without much reflexion, something better can probably made (more consistent with gradient perhaps, ie. random always in 0-1 range). If something similar can be already made (or is planned for 1.2), just let me know... -- Philippe Lhoste -- (near) Paris -- France -- Professional programmer and amateur artist -- http://Phi.Lho.free.fr -- -- -- -- -- -- -- -- -- -- -- --
Received on Saturday, 30 October 2004 09:36:43 UTC