Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17825

Use constants for colors in vector images? (SVG)

$
0
0
Hi I have around 1000 vector images (*.SVG). They have colors specifid in each one, but i would like to set up a "master-file" that specifies a couple of color-constants, so it's easier to change between colors. This would need the image files to "look" at that master file. Currently (some of the content of ) an image file looks like this: <ellipse id="Circle" fill="#5389A4" cx="12" cy="12" rx="10" ry="10"/> I would like to set up a "master-file" like define grey1 = #606060 define grey2 =#909090 The image file would then read something like: <ellipse id="Circle" fill="grey1" cx="12" cy="12" rx="10" ry="10"/> Is that doable? Thanks Erik

Viewing all articles
Browse latest Browse all 17825

Trending Articles