Mercurial > touhou
view data/ST/face.svg @ 524:7f016dfbdfb1
Make vector a struct, allocate it directly on the stack, and thus pass it by copy, which is much less expensive than a python allocation.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Wed, 18 Dec 2013 18:15:40 +0100 |
parents | 1bc0ad774ed4 |
children |
line wrap: on
line source
<?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" width="256" height="256" id="svg2" version="1.1" inkscape:version="0.48.1 r9760" sodipodi:docname="face.svg"> <defs id="defs4" /> <sodipodi:namedview id="base" pagecolor="#ffffff" bordercolor="#666666" borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:zoom="1.4" inkscape:cx="42.269172" inkscape:cy="103.6375" inkscape:document-units="px" inkscape:current-layer="layer1" showgrid="false" inkscape:window-width="1280" inkscape:window-height="725" inkscape:window-x="0" inkscape:window-y="25" 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 /> </cc:Work> </rdf:RDF> </metadata> <g inkscape:label="Calque 1" inkscape:groupmode="layer" id="layer1" transform="translate(0,-796.36218)"> <g id="g3016" transform="translate(170,-34.57143)"> <g transform="translate(147.31068,0)" id="g3006"> <path style="fill:#808080;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" d="M -262.14286,145.28571 -282.85714,171 l 19.28571,32.85714 33.57143,-35 z" id="path3000" inkscape:connector-curvature="0" transform="translate(0,796.36218)" /> <path style="fill:#999999;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" d="m -286.42857,83.857143 0,48.571427 30.35714,30.35714 34.87992,-20.13793 0,-60.933494 11.713,-6.762503 -31.82134,-8.526503 -31.47989,8.435012 -24.36312,0 z" id="path2994" inkscape:connector-curvature="0" transform="translate(0,796.36218)" /> <path style="fill:#ff0000;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" d="m -277.85715,896.64789 -2.14285,20 10.71428,12.14286 7.85714,-15 z" id="path2996" inkscape:connector-curvature="0" /> <path inkscape:connector-curvature="0" id="path2998" d="m -230.71428,896.64789 2.14285,20 -10.71428,12.14286 -7.85714,-15 z" style="fill:#ff0000;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> <path style="fill:#808080;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" d="M -242.85714,196 -250,216 l 15.71429,5.71429 5,-20 z" id="path3002" inkscape:connector-curvature="0" transform="translate(0,796.36218)" /> <path style="fill:#808080;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" d="M -285,194.57143 -295.71429,206 l 8.57143,17.14286 12.85715,-15.71429 -9.28572,-9.28571 z" id="path3004" inkscape:connector-curvature="0" transform="translate(0,796.36218)" /> </g> </g> <g transform="translate(298,-34.57143)" id="g3026"> <g id="g3030" transform="translate(147.31068,0)"> <path transform="translate(0,796.36218)" inkscape:connector-curvature="0" id="path3032" d="M -262.14286,145.28571 -282.85714,171 l 19.28571,32.85714 33.57143,-35 z" style="fill:#808080;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> <path transform="translate(0,796.36218)" inkscape:connector-curvature="0" id="path3034" d="m -286.42857,83.857143 0,48.571427 30.35714,30.35714 34.87992,-20.13793 0,-60.933494 11.713,-6.762503 -31.82134,-8.526503 -31.47989,8.435012 -24.36312,0 z" style="fill:#999999;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> <path inkscape:connector-curvature="0" id="path3036" d="m -277.85715,896.64789 -2.14285,20 10.71428,12.14286 7.85714,-15 z" style="fill:#ff0000;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> <path style="fill:#ff0000;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" d="m -230.71428,896.64789 2.14285,20 -10.71428,12.14286 -7.85714,-15 z" id="path3038" inkscape:connector-curvature="0" /> <path transform="translate(0,796.36218)" inkscape:connector-curvature="0" id="path3040" d="M -242.85714,196 -250,216 l 15.71429,5.71429 5,-20 z" style="fill:#808080;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> <path transform="translate(0,796.36218)" inkscape:connector-curvature="0" id="path3042" d="M -285,194.57143 -295.71429,206 l 8.57143,17.14286 12.85715,-15.71429 -9.28572,-9.28571 z" style="fill:#808080;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> </g> </g> </g> </svg>