Mercurial > MadButterfly
view examples/dynamic/scene.svg @ 881:a17c4e231e54 abs_n_rel_center
Transform positions of radient paints.
cx, cy of radial and x1, y1, x2, y2 of linear gradient paints must be
transformed with aggregated matrix of painted shapes. Pattern to user
space transformation maybe used to get more precise color.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Sat, 25 Sep 2010 20:12:45 +0800 |
parents | 248a40d51473 |
children |
line wrap: on
line source
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!-- Created with Inkscape (http://www.inkscape.org/) --> <svg xmlns:ns0="http://madbutterfly.sourceforge.net/DTD/madbutterfly.dtd" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="640px" height="480px" id="svg2383" sodipodi:version="0.32" inkscape:version="0.46" sodipodi:docname="scene.svg" inkscape:output_extension="org.inkscape.output.svg.inkscape"> <sodipodi:namedview id="base" pagecolor="#ffffff" bordercolor="#666666" borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:zoom="0.77472527" inkscape:cx="132.83688" inkscape:cy="240" inkscape:current-layer="layer1" inkscape:document-units="px" showgrid="false" inkscape:window-width="1400" inkscape:window-height="978" inkscape:window-x="0" inkscape:window-y="25" /> <defs id="defs2385"> <inkscape:perspective id="perspective2391" inkscape:persp3d-origin="320 : 160 : 1" inkscape:vp_z="640 : 240 : 1" inkscape:vp_y="0 : 1000 : 0" inkscape:vp_x="0 : 240 : 1" sodipodi:type="inkscape:persp3d" /> </defs> <metadata id="metadata2388"> <rdf:RDF> <cc:Work rdf:about=""> <dc:format>image/svg+xml</dc:format> <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> </cc:Work> </rdf:RDF> <ns0:scenes current="3"> <ns0:scene start="1" ref="s7737" /> <ns0:scene start="2" ref="s4405" /> <ns0:scene start="3" ref="s4702" /> </ns0:scenes> </metadata> <g inkscape:groupmode="layer" inkscape:label="Layer 1" id="layer1"> <g style="display:none" opacity="0.5" id="s7737"> <text xml:space="preserve" style="font-size:24px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans" x="188.4539" y="189.57446" id="text2554"><tspan sodipodi:role="line" id="tspan2556" x="188.4539" y="189.57446">This is scene 1</tspan></text> <rect style="fill:#00d300;fill-opacity:1;stroke:#00d300;stroke-opacity:1" id="rect2410" width="233.63121" height="24.524822" x="158.76596" y="131.48936" rx="4.0216751" ry="5.0559778" /> </g> <g style="display:none" id="s4405"> <text id="text2576" y="199.90071" x="196.19858" style="font-size:24px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:0.5;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans" xml:space="preserve"><tspan y="199.90071" x="196.19858" id="tspan2578" sodipodi:role="line">This is scene 2aaaaaaaa</tspan></text> <rect ry="5.0559778" rx="4.0216751" y="127.61702" x="157.47517" height="24.524822" width="289.13477" id="rect2387" style="fill:#0068d3;fill-opacity:1;stroke:#00d300;stroke-opacity:1" /> </g> <g id="s4702" style="" /> </g> </svg>