I'm soliciting for some ideas regarding patterns in SVG. The 
document is basically a thematic diagram created on the fly 
using .net. Rectangles in a layer need to be filled with a pattern 
based on the coded lookup value of that particular shape. Examples 
of patterns are hatching, cross-hatching, etc. Secondly -the part 
I'm struggling with- is that the color of the pattern needs to be 
based on a lookup value also. As far a I can tell there's no real 
efficient way to do this without creating multiple patterns with all 
the various fill color options. For example:

defs>
    <pattern id="checkerPattern" patternUnits="userSpaceOnUse"
            x="0" y="0" width="20" height="20"
            viewBox="0 0 15 15" >
        <rect x="0" y="0" width="10" height="5" fill="blue"/>
        <rect x="5" y="5" width="15" height="5" fill="blue"/>
    </pattern> 
</defs>  

That code would work just fine if I only wanted a blue checkerboard 
pattern. However, the color and pattern type needs is determined 
based on a lookup value in the database. I can do the patterns 
easily enough since there are only a half-dozen or so options. The 
fill colors on the other hand can range the entire span of RGB. 
Obviously loading all the fill color vairiations per pattern isn't 
an option. Any thouguhts would be apreciated. 

Thx,
bmc




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

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

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