Quantcast
Channel: Northwoods Software - Latest topics
Viewing all articles
Browse latest Browse all 7425

How to make path svg like at the sample?

$
0
0

@taliguci1 wrote:

how to make path svg string like the sample

icons.natgas =
"F M244.414,133.231 L180.857,133.231 178.509,156.191 250.527,192.94z\
M179.027,276.244 262.328,308.179 253.451,221.477z\
M267.717,360.866 264.845,332.807 220.179,360.866z\
M167.184,266.775 247.705,207.524 176.95,171.421z\
M157.551,360.866 192.975,360.866 256.447,320.996 165.218,286.021z\
M141.262,374.366 141.262,397.935 161.396,397.935 161.396,425.268 179.197,425.268 179.197,397.935\
246.07,397.935 246.07,425.268 263.872,425.268 263.872,397.935 284.006,397.935 284.006,374.366z";

I have used inkscape, but the result is not like above

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<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="5cm"
height="10cm"
viewBox="0 0 49 98.000001"
version="1.1"
id="svg6941"
inkscape:version="0.92.1 r15371"
sodipodi:docname="perc5.svg">
<defs
id="defs6935" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="3.959798"
inkscape:cx="40.411743"
inkscape:cy="307.62661"
inkscape:document-units="cm"
inkscape:current-layer="layer1"
showgrid="false"
units="cm"
scale-x="9.8"
inkscape:window-width="1366"
inkscape:window-height="706"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1" />
<metadata
id="metadata6938">

<cc:Work
rdf:about="">
image/svg+xml
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />




<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-197.00002)">
<ellipse
style="fill:none;stroke-width:0.2306117"
id="path7997"
cx="6.0022345"
cy="206.59204"
rx="0.81533545"
ry="6.056778" />
<ellipse
style="fill:none;stroke-width:0.2306117"
id="path7999"
cx="9.0306273"
cy="205.77672"
rx="4.3096304"
ry="0.34942952" />
<ellipse
style="fill:none;stroke-width:0.2306117"
id="path8001"
cx="23.706667"
cy="213.11472"
rx="20.849291"
ry="2.0965767" />
<path
style="fill:#ff0000;fill-opacity:0;stroke:#e70000;stroke-width:1.74320662;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 31.421135,217.55124 c 0,18.3874 0.221956,32.08256 0,55.41246 -0.267781,1.00113 -0.548088,2.07965 -2.410028,3.1035 -1.044659,0.80883 -2.852916,0.90372 -4.552271,1.10124 -1.398039,-0.17017 -2.695917,-0.1751 -4.55227,-1.10124 -2.531858,-1.55391 -1.916227,-2.31414 -2.410026,-3.35378 0.0151,-18.47035 -0.01464,-36.44131 0,-54.9119 0.05507,-3.58233 4.271884,-4.31211 6.962299,-4.45501 4.102299,0.27386 6.49561,1.62951 6.962296,4.20473 z"
id="path5669"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccccccccc" />
<path
style="fill:#ff0000;fill-opacity:0;stroke:#e50000;stroke-width:0.87160331;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 17.49654,217.80152 c 4.641761,-2.3e-4 9.283292,-2.3e-4 13.924595,0"
id="path5671"
inkscape:connector-curvature="0" />
<path
style="fill:#ff0000;fill-opacity:0;stroke:#e70000;stroke-width:0.87160331;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 17.49654,221.40559 H 31.421135 L 17.49654,268.7089 h 13.924595 z"
id="path5673"
inkscape:connector-curvature="0" />
<path
style="fill:none;stroke:#e90000;stroke-width:0.87160331;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 17.49654,272.71342 H 31.421135"
id="path5675"
inkscape:connector-curvature="0" />
<path
style="fill:#ff0000;fill-opacity:0;stroke:#eb0000;stroke-width:0.87160331;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 24.458836,277.16844 v 10.06134"
id="path5677"
inkscape:connector-curvature="0" />
<path
style="fill:#ff0000;stroke:#eb0000;stroke-width:0.87160331;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 24.458837,203.28517 v 10.06134"
id="path5677-5"
inkscape:connector-curvature="0" />

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7425

Latest Images

Trending Articles



Latest Images