annotate examples/tank/rock.svg @ 776:77b561bb7929

Implement new algorithm to calculate the origin of the SVG elemnts so that we can implement object resize without changing the position of the object. However, the image does not work here since it does not use the transformation of the group.
author wycc
date Mon, 30 Aug 2010 08:56:44 +0800
parents 3895d2224e67
children
rev   line source
115
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
2 <!-- Created with Inkscape (http://www.inkscape.org/) -->
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
3 <svg
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
4 xmlns:dc="http://purl.org/dc/elements/1.1/"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
5 xmlns:cc="http://creativecommons.org/ns#"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
6 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
7 xmlns:svg="http://www.w3.org/2000/svg"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
8 xmlns="http://www.w3.org/2000/svg"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
9 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
10 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
11 width="50"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
12 height="50"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
13 id="svg3411"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
14 sodipodi:version="0.32"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
15 inkscape:version="0.46"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
16 version="1.0"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
17 sodipodi:docname="rock.svg"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
18 inkscape:output_extension="org.inkscape.output.svg.inkscape">
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
19 <defs
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
20 id="defs3413">
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
21 <inkscape:perspective
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
22 sodipodi:type="inkscape:persp3d"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
23 inkscape:vp_x="0 : 526.18109 : 1"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
24 inkscape:vp_y="0 : 1000 : 0"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
25 inkscape:vp_z="744.09448 : 526.18109 : 1"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
26 inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
27 id="perspective3419" />
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
28 </defs>
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
29 <sodipodi:namedview
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
30 id="base"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
31 pagecolor="#ffffff"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
32 bordercolor="#666666"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
33 borderopacity="1.0"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
34 gridtolerance="10000"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
35 guidetolerance="10"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
36 objecttolerance="10"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
37 inkscape:pageopacity="0.0"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
38 inkscape:pageshadow="2"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
39 inkscape:zoom="9.24"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
40 inkscape:cx="25"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
41 inkscape:cy="37.987013"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
42 inkscape:document-units="px"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
43 inkscape:current-layer="layer1"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
44 showgrid="false"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
45 inkscape:window-width="690"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
46 inkscape:window-height="695"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
47 inkscape:window-x="221"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
48 inkscape:window-y="69" />
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
49 <metadata
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
50 id="metadata3416">
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
51 <rdf:RDF>
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
52 <cc:Work
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
53 rdf:about="">
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
54 <dc:format>image/svg+xml</dc:format>
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
55 <dc:type
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
56 rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
57 </cc:Work>
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
58 </rdf:RDF>
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
59 </metadata>
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
60 <g
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
61 inkscape:label="Layer 1"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
62 inkscape:groupmode="layer"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
63 id="layer1">
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
64 <rect
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
65 style="opacity:1;fill:#cccccc;fill-opacity:1;stroke:none;stroke-width:0;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
66 id="rect3421"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
67 width="50"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
68 height="50"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
69 x="0"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
70 y="0" />
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
71 <path
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
72 style="fill:#999999;fill-rule:evenodd;stroke:#4d4d4d;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
73 d="M 0.64935065,3.5714286 C 1.5336421,1.6918446 2.0206975,1.0517362 4.6536797,0.64935065 C 7.2866619,0.24696506 15.386489,1.4669706 16.774892,4.7619048 C 18.163295,8.056839 14.984476,13.250651 12.012987,14.718615 C 9.0414984,16.186579 3.1463736,14.710635 1.1904762,12.445887 C -0.76542122,10.181139 -0.23494082,5.4510126 0.64935065,3.5714286 z"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
74 id="path3932"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
75 sodipodi:nodetypes="czzzzz" />
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
76 <path
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
77 style="fill:#ececec;fill-rule:evenodd;stroke:#4d4d4d;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
78 d="M 32.426373,36.647749 C 33.310665,34.768165 33.79772,34.128056 36.430702,33.725671 C 39.063685,33.323285 47.163512,34.543291 48.551915,37.838225 C 49.940318,41.133159 50.765828,47.950348 47.794339,49.418312 C 44.82285,50.886276 34.923396,47.786955 32.967499,45.522207 C 31.011601,43.257459 31.542082,38.527333 32.426373,36.647749 z"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
79 id="path3934"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
80 sodipodi:nodetypes="czzzzz" />
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
81 <path
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
82 style="fill:none;fill-rule:evenodd;stroke:#4d4d4d;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
83 d="M 29.937195,3.9637662 C 30.821487,2.0841822 31.308542,1.4440732 33.941524,1.0416882 C 36.574507,0.63930219 44.674334,1.8593082 46.062737,5.1542422 C 47.45114,8.4491762 54.67761,7.5732362 41.300832,15.110952 C 27.924054,22.648668 38.494824,11.315093 36.538927,9.0503452 C 34.58303,6.7855972 29.052904,5.8433502 29.937195,3.9637662 z"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
84 id="path3936"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
85 sodipodi:nodetypes="czzzzz" />
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
86 <path
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
87 style="fill:#cccccc;fill-rule:evenodd;stroke:#4d4d4d;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
88 d="M 2.9424294,25.167467 C 3.8267214,23.287883 4.3137764,22.647774 6.9467584,22.245389 C 9.5797414,21.843003 17.679568,23.063009 19.067971,26.357943 C 20.456374,29.652877 27.682844,28.776937 14.306066,36.314652 C 0.92928838,43.852368 11.500058,32.518793 9.5441614,30.254046 C 7.5882644,27.989298 2.0581384,27.047051 2.9424294,25.167467 z"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
89 id="path3938"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
90 sodipodi:nodetypes="czzzzz" />
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
91 <path
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
92 style="fill:#b3b3b3;fill-rule:evenodd;stroke:#4d4d4d;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
93 d="M 17.532468,9.5238093 C 17.265211,6.9383573 18.128401,2.3178763 20.562771,1.4069263 C 22.984765,0.50060706 28.138528,5.5194803 28.138528,5.5194803 C 28.138528,5.5194803 33.497934,17.550095 30.194805,20.779221 C 28.855064,22.088947 25.591052,20.835156 24.025974,19.805195 C 20.978574,17.799733 17.90757,13.152559 17.532468,9.5238093 z"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
94 id="path3940"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
95 sodipodi:nodetypes="cscsss" />
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
96 <path
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
97 style="fill:#b3b3b3;fill-rule:evenodd;stroke:#4d4d4d;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
98 d="M 33.847054,21.797506 C 32.994763,19.341984 35.380021,15.805234 36.877357,13.680623 C 40.965595,7.8797103 52.528336,10.414204 49.647919,18.875428 C 49.694971,32.036084 53.487602,51.461758 45.42714,36.191445 C 43.700401,32.920188 39.616493,33.759211 40.34056,32.078891 C 45.120358,20.986561 35.157276,25.572368 33.847054,21.797506 z"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
99 id="path3942"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
100 sodipodi:nodetypes="cscsss" />
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
101 <path
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
102 style="fill:#808080;fill-rule:evenodd;stroke:#4d4d4d;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
103 d="M 4.5180493,37.381921 C 4.8053964,34.798625 7.917239,41.64217 9.7128545,39.762874 C 13.405384,35.898264 24.239082,33.315767 24.539693,33.702267 C 25.835502,34.07847 27.339515,47.398659 17.180386,48.637333 C 15.320583,48.864094 12.457177,46.471475 11.011555,47.663307 C 3.3778663,53.956844 3.9181712,42.774921 4.5180493,37.381921 z"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
104 id="path3944"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
105 sodipodi:nodetypes="cscsss" />
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
106 <path
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
107 style="fill:#666666;fill-rule:evenodd;stroke:#4d4d4d;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
108 d="M 19.669565,25.044259 C 19.402308,22.458807 21.950997,21.165438 24.539695,20.931705 C 27.444709,20.669412 40.287849,23.603126 39.90766,23.096207 C 39.90766,23.096207 42.236763,28.957991 38.933634,32.187117 C 37.593893,33.496843 27.728149,36.355606 26.163071,35.325645 C 23.115671,33.320183 20.044667,28.673009 19.669565,25.044259 z"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
109 id="path3946"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
110 sodipodi:nodetypes="cscsss" />
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
111 <path
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
112 style="fill:#666666;fill-rule:evenodd;stroke:#4d4d4d;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
113 d="M -0.76780168,18.56745 C -1.0350587,15.981998 1.5136303,14.688629 4.1023283,14.454896 C 7.0073423,14.192603 16.603729,10.957486 19.470293,16.619398 C 20.273782,16.681205 18.077541,20.947982 19.253843,23.221131 C 20.652402,25.92378 4.2320251,18.496451 1.8296004,25.602083 C 0.66115474,29.057985 -0.39269968,22.1962 -0.76780168,18.56745 z"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
114 id="path3948"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
115 sodipodi:nodetypes="cscsss" />
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
116 <path
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
117 style="fill:#cccccc;fill-rule:evenodd;stroke:#4d4d4d;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
118 d="M 16.254117,36.422878 C 17.138409,34.543294 17.625464,33.903185 20.258446,33.5008 C 22.891429,33.098414 30.991256,34.31842 32.379659,37.613354 C 33.768062,40.908288 42.350244,49.544459 28.483555,50.275691 C 14.616866,51.006922 24.811746,43.774204 22.855849,41.509457 C 20.899952,39.24471 15.369826,38.302462 16.254117,36.422878 z"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
119 id="path3950"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
120 sodipodi:nodetypes="czzzzz" />
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
121 <path
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
122 style="fill:#b3b3b3;fill-rule:evenodd;stroke:#4d4d4d;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
123 d="M -0.46030537,33.485818 C -0.72756237,30.900366 0.082782696,26.123752 2.5699976,25.368935 C 6.9124957,24.051078 10.748503,33.789558 8.6306035,34.243394 C 5.2172993,32.536742 2.9786361,42.824598 4.8427246,48.637333 C 5.4148625,50.421414 3.0528243,50.64132 1.4877463,49.611359 C -1.5596539,47.605897 -0.085203369,37.114567 -0.46030537,33.485818 z"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
124 id="path3952"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
125 sodipodi:nodetypes="cscsss" />
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
126 <path
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
127 style="fill:#808080;fill-rule:evenodd;stroke:#4d4d4d;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
128 d="M 24.530256,2.2775472 C 24.848134,-0.34183094 31.268055,-0.049109712 30.157962,1.519972 C 27.028209,5.9437811 29.631672,6.7252302 34.703415,5.416075 C 35.999224,5.792278 42.048692,20.194718 31.889563,21.433392 C 30.02976,21.660153 32.577609,10.28485 31.131987,11.476682 C 23.498298,17.770219 23.876541,7.6642864 24.530256,2.2775472 z"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
129 id="path3954"
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
130 sodipodi:nodetypes="cscsss" />
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
131 </g>
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
132 </svg>