[cairo] SVG Spacewar

Keith Bauer OneSadCookie at paradise.net.nz
Fri Apr 1 02:14:07 PST 2005


> There is a cairo snippet that loads a static SVG file, but I was
> thinking... the red ship and the blue ship are pretty much identical,
> but for different colors.  Do you know if the SVG spec (or something
> else?) allows for "parameterized" SVG, so that I can say something like
> "load the ship.svg file with parameters (primary_color = #FF66CC,
> active_layers = [ship, shields, exhaust], frame = 2)"?

Is this not what SVG+CSS allows?  Load the same SVG with two different 
stylesheets to get two different color schemes -- or by the looks of 
it, many more differences:
http://www.w3.org/TR/SVG11/propidx.html

( please, somebody correct me if I'm wrong :) )

Do any of the open-source SVG libraries support CSS to any extent?

-Keith




More information about the cairo mailing list