User:Amy Suo Wu/svg
< User:Amy Suo Wu
Revision as of 10:36, 27 October 2011 by Amy Suo Wu (talk | contribs) (Created page with " ==code== <source lang = "python"> print"""<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!-- Created with Inkscape (http://www.inkscape.org/) --> <svg xmlns:dc="ht...")
code
print"""<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
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"
id="svg2"
version="1.1"
inkscape:version="0.48.0 r9654"
sodipodi:docname="New document 1">
<defs
id="defs4" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.35"
inkscape:cx="375"
inkscape:cy="520"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1280"
inkscape:window-height="769"
inkscape:window-x="0"
inkscape:window-y="1"
inkscape:window-maximized="1" />
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
"""
for x in range(1, 200):
print """
<rect
style="fill:none;fill-opacity:1;stroke:#d10000"
id="seedcircle"
width="{0}"
height="50"
cx="{0}"
cy="-100"
transform="scale(1,-1)" />
<animateMotion path="M 1000,0 Q40,75 90,70Q95,60 95,50Q180,40 170,100Z"
dur="3s" repeatCount="indefinite" rotate="auto"/>
""".format(x * 20)
print """
<path
style="fill:#000080;stroke:none"
d="M 88.571429,220.93361 285.71429,195.21933 417.14286,389.50504 242.85714,360.93361 z"
id="path2989"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccccc" />
<path
style="fill:#00ffff;stroke:none"
d="M 422.85714,460.93361 471.42857,335.21932 622.85714,289.50504 691.42857,360.93361 640,495.21932 z"
id="path3759"
inkscape:connector-curvature="0" />
<path
style="fill:#ff0000;stroke:none"
d="m 391.42857,400.93361 -160,134.28571 160,88.57143 z"
id="path3761"
inkscape:connector-curvature="0" />
<path
sodipodi:type="arc"
style="fill:#ff9955;fill-opacity:1;stroke:none"
id="path3763"
sodipodi:cx="505.71429"
sodipodi:cy="600.93359"
sodipodi:rx="45.714287"
sodipodi:ry="45.714287"
d="m 551.42858,600.93359 a 45.714287,45.714287 0 1 1 -2.1e-4,-0.14037 l -45.71408,0.14037 z"
sodipodi:start="0"
sodipodi:end="6.2801146"
transform="translate(-14.285714,-31.428571)" />
</g>
</svg>
"""
pirate dance
I wanted to animateMotion the logo of pirate bay as used with the above code...but alas, it doesn't work.