Code

commit updates to curvestitch example
authorjohanengelen <johanengelen@users.sourceforge.net>
Tue, 9 Oct 2007 18:48:54 +0000 (18:48 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Tue, 9 Oct 2007 18:48:54 +0000 (18:48 +0000)
share/examples/live-path-effects-curvestitch.svg

index d358490e36588345a41c518847489fb1c6b15693..df47f36e98e5e3f3447a532a74c3133685966aaa 100644 (file)
@@ -66,8 +66,8 @@
      inkscape:pageopacity="0.0"
      inkscape:pageshadow="2"
      inkscape:zoom="0.9899495"
-     inkscape:cx="322.26214"
-     inkscape:cy="242.25859"
+     inkscape:cx="521.39204"
+     inkscape:cy="316.77113"
      inkscape:document-units="px"
      inkscape:current-layer="layer1"
      inkscape:window-width="1152"
@@ -92,7 +92,7 @@
     <path
        id="path2293"
        style="fill:#ffaaaa;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
-       d="M 101.819,589.253 C 131.366,786.963 100.871,919.078 36.4624,1028 M 99.9688,600.009 C 133.388,790.529 107.122,919.069 47.4864,1026 M 98.113,610.767 C 135.434,794.148 113.406,919.153 58.5367,1024.14 M 96.2518,621.525 C 137.506,797.822 119.721,919.334 69.6117,1022.41 M 94.3851,632.285 C 139.603,801.554 126.066,919.615 80.7098,1020.82 M 92.5126,643.046 C 141.725,805.344 132.441,920 91.8293,1019.37 M 90.6342,653.808 C 143.871,809.197 138.845,920.492 102.968,1018.08 M 88.7496,664.572 C 146.042,813.113 145.277,921.095 114.126,1016.94 M 86.8587,675.336 C 148.237,817.095 151.736,921.813 125.299,1015.95 M 84.9613,686.101 C 150.456,821.145 158.222,922.648 136.488,1015.13 M 83.0573,696.866 C 152.698,825.265 164.733,923.605 147.689,1014.48 M 81.1463,707.633 C 154.965,829.457 171.27,924.687 158.902,1014 M 79.2282,718.4 C 157.254,833.724 177.831,925.897 170.125,1013.7 M 77.3028,729.168 C 159.566,838.069 184.413,927.242 181.352,1013.58 M 75.3701,739.936 C 161.898,842.491 191.014,928.719 192.582,1013.64 M 73.4303,750.705 C 164.249,846.989 197.631,930.327 203.811,1013.88 M 71.4836,761.473 C 166.618,851.562 204.264,932.061 215.036,1014.29 M 69.53,772.242 C 169.003,856.207 210.908,933.92 226.257,1014.88 M 67.5698,783.011 C 171.402,860.924 217.563,935.901 237.469,1015.62 M 65.6031,793.78 C 173.815,865.71 224.226,938.001 248.671,1016.53 M 63.6302,804.548 C 176.239,870.565 230.895,940.217 259.861,1017.6 M 61.651,815.316 C 178.673,875.487 237.568,942.546 271.035,1018.82 M 59.666,826.084 C 181.116,880.473 244.242,944.984 282.192,1020.18 M 57.6757,836.852 C 183.565,885.517 250.916,947.519 293.332,1021.68 M 55.6808,847.618 C 186.02,890.611 257.589,950.14 304.456,1023.29 M 53.6819,858.385 C 188.48,895.748 264.262,952.833 315.567,1025 M 51.6798,869.151 C 190.944,900.922 270.935,955.587 326.666,1026.79 M 49.675,879.917 C 193.411,906.124 277.607,958.389 337.756,1028.64 M 47.6683,890.683 C 195.88,911.348 284.278,961.228 348.838,1030.54 M 45.6603,901.448 C 198.351,916.586 290.948,964.091 359.915,1032.48 M 43.6516,912.214 C 200.821,921.831 297.618,966.967 370.988,1034.43 M 41.6431,922.979 C 203.291,927.075 304.287,969.839 382.061,1036.38 M 39.6356,933.745 C 205.761,932.307 310.957,972.692 393.14,1038.3 M 37.6296,944.511 C 208.229,937.523 317.629,975.517 404.225,1040.19 M 35.6258,955.277 C 210.696,942.715 324.301,978.302 415.319,1042.02 M 33.6246,966.043 C 213.159,947.877 330.975,981.038 426.422,1043.78 M 31.6267,976.81 C 215.618,953.004 337.648,983.713 437.536,1045.47 M 29.6327,987.577 C 218.072,958.089 344.322,986.317 448.664,1047.05 M 27.6431,998.344 C 220.52,963.125 350.996,988.84 459.806,1048.53 M 25.6584,1009.11 C 222.962,968.107 357.669,991.271 470.963,1049.89"
+       d="M 112.989,590.846 C 106.693,783.444 83.4304,916.591 49.3598,1029.84 M 110.602,601.252 C 109.899,787.783 90.52,917.128 59.7642,1027.44 M 108.218,611.671 C 113.113,792.151 97.6286,917.742 70.2045,1025.18 M 105.838,622.103 C 116.331,796.547 104.754,918.433 80.6804,1023.07 M 103.463,632.548 C 119.55,800.973 111.892,919.205 91.1916,1021.12 M 101.094,643.009 C 122.768,805.428 119.042,920.059 101.738,1019.33 M 98.7336,653.484 C 125.98,809.914 126.199,920.999 112.321,1017.7 M 96.3824,663.974 C 129.181,814.432 133.359,922.028 122.939,1016.25 M 94.0425,674.48 C 132.368,818.986 140.52,923.149 133.594,1014.96 M 91.7157,685 C 135.536,823.576 147.676,924.367 144.287,1013.86 M 89.4041,695.534 C 138.678,828.209 154.823,925.685 155.018,1012.94 M 87.1097,706.08 C 141.792,832.888 161.959,927.111 165.788,1012.21 M 84.834,716.636 C 144.871,837.62 169.078,928.651 176.598,1011.66 M 82.5787,727.201 C 147.912,842.415 176.175,930.314 187.444,1011.31 M 80.3446,737.769 C 150.91,847.278 183.247,932.103 198.326,1011.14 M 78.1322,748.339 C 153.863,852.215 190.29,934.02 209.24,1011.15 M 75.9412,758.906 C 156.771,857.234 197.304,936.07 220.183,1011.33 M 73.7706,769.466 C 159.636,862.34 204.287,938.256 231.153,1011.67 M 71.6186,780.015 C 162.459,867.541 211.242,940.579 242.144,1012.16 M 69.4829,790.551 C 165.244,872.843 218.168,943.043 253.151,1012.8 M 67.3605,801.069 C 167.998,878.25 225.071,945.649 264.168,1013.58 M 65.2482,811.569 C 170.727,883.765 231.951,948.397 275.189,1014.49 M 63.1426,822.048 C 173.436,889.389 238.813,951.286 286.207,1015.52 M 61.0406,832.506 C 176.132,895.116 245.662,954.305 297.217,1016.66 M 58.9392,842.943 C 178.823,900.94 252.502,957.44 308.219,1017.89 M 56.8359,853.359 C 181.513,906.851 259.338,960.681 319.209,1019.19 M 54.7287,863.755 C 184.21,912.841 266.175,964.012 330.187,1020.56 M 52.6157,874.133 C 186.916,918.9 273.015,967.42 341.151,1021.96 M 50.4957,884.494 C 189.635,925.018 279.863,970.891 352.103,1023.4 M 48.3679,894.84 C 192.37,931.185 286.721,974.41 363.041,1024.85 M 46.2315,905.171 C 195.122,937.389 293.589,977.963 373.967,1026.3 M 44.0865,915.49 C 197.894,943.62 300.472,981.533 384.883,1027.73 M 41.9327,925.797 C 200.687,949.864 307.371,985.102 395.792,1029.12 M 39.7703,936.095 C 203.501,956.114 314.286,988.658 406.697,1030.47 M 37.5994,946.384 C 206.336,962.36 321.22,992.188 417.598,1031.75 M 35.4203,956.664 C 209.192,968.595 328.171,995.682 428.495,1032.95 M 33.2334,966.938 C 212.069,974.81 335.14,999.126 439.392,1034.07 M 31.039,977.206 C 214.965,980.997 342.126,1002.51 450.288,1035.08 M 28.8377,987.469 C 217.882,987.148 349.131,1005.82 461.185,1035.98 M 26.6297,997.727 C 220.817,993.257 356.153,1009.05 472.085,1036.74"
        inkscape:path-effect="#path-effect2300"
        inkscape:original-d="M 119.45542,591.76834 L 27.184914,991.21866 M 56.825964,1030.9018 C 241.13794,983.96177 338.7716,1020.7021 472.72589,1029.2281"
        sodipodi:nodetypes="cccc" />
        id="g3401"
        transform="translate(78.987743,-119.34158)">
       <g
-         transform="translate(50.649414,40.460682)"
+         transform="translate(33.476821,34.399767)"
          id="g3179">
         <path
            sodipodi:type="arc"
         <text
            xml:space="preserve"
            style="font-size:22px;font-style:normal;font-weight:normal;fill:#0000ff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
-           x="-82.877533"
-           y="346.71921"
-           id="text3173"
-           transform="translate(84.061496,-150.36352)"><tspan
+           x="-1.3160369"
+           y="196.35568"
+           id="text3173"><tspan
              sodipodi:role="line"
              id="tspan3175"
-             x="-82.877533"
-             y="346.71921"
+             x="-1.3160369"
+             y="196.35568"
              style="font-size:40px;font-weight:bold;writing-mode:lr-tb;fill:#0000ff">1</tspan></text>
       </g>
       <flowRoot
          transform="translate(-60.609152,88.893432)"><flowRegion
            id="flowRegion3313"><rect
              id="rect3315"
-             width="282.84271"
-             height="78.791901"
+             width="320.21835"
+             height="69.700531"
              x="149.50258"
              y="102.81879" /></flowRegion><flowPara
            id="flowPara3317">Draw the two paths that will</flowPara><flowPara
        id="g3412"
        transform="translate(49.509796,-145.4866)">
       <flowRoot
-         transform="translate(-27.794062,210.70347)"
+         transform="translate(-12.641774,211.71362)"
          style="font-size:22px;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"
          id="flowRoot3321"
          xml:space="preserve"><flowRegion
            id="flowRegion3323"><rect
              y="102.81879"
              x="149.50258"
-             height="78.791901"
-             width="282.84271"
+             height="106.06602"
+             width="341.43155"
              id="rect3325" /></flowRegion><flowPara
            id="flowPara3329">Combine them into</flowPara><flowPara
            id="flowPara3333">one path (Ctrl+K)</flowPara></flowRoot>      <g
           <text
              xml:space="preserve"
              style="font-size:22px;font-style:normal;font-weight:normal;fill:#0000ff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
-             x="2.1941156"
+             x="-1.0201701"
              y="193.32523"
              id="text2623"><tspan
                sodipodi:role="line"
                id="tspan2625"
-               x="2.1941156"
+               x="-1.0201701"
                y="193.32523"
                style="font-size:40px;font-weight:bold;writing-mode:lr-tb;fill:#0000ff">2</tspan></text>
         </g>
       </g>
     </g>
+    <path
+       transform="translate(97.846372,333.01089)"
+       d="M -7.1037903,199.31558 A 37.886871,34.92696 0 1 1 -82.877533,199.31558 A 37.886871,34.92696 0 1 1 -7.1037903,199.31558 z"
+       sodipodi:ry="34.92696"
+       sodipodi:rx="37.886871"
+       sodipodi:cy="199.31558"
+       sodipodi:cx="-44.990662"
+       id="path2645"
+       style="fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#0000ff;stroke-width:0.53125;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+       sodipodi:type="arc" />
+    <text
+       id="text2647"
+       y="546.53436"
+       x="37.801777"
+       style="font-size:22px;font-style:normal;font-weight:normal;fill:#0000ff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
+       xml:space="preserve"><tspan
+         style="font-size:40px;font-weight:bold;writing-mode:lr-tb;fill:#0000ff"
+         y="546.53436"
+         x="37.801777"
+         id="tspan2649"
+         sodipodi:role="line">4</tspan></text>
     <g
-       id="g3385"
-       transform="translate(-216.17265,18.182746)">
+       id="g2618"
+       transform="translate(102.02541,-16.162441)">
       <g
-         id="g2671">
-        <text
-           id="text2641"
-           y="521.94788"
-           x="292.21896"
-           style="font-size:22px;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"
-           xml:space="preserve">Draw a path that will replace the default horizontal connecting path</text>
-        <g
-           transform="translate(251.96414,340.66884)"
-           id="g2643">
-          <path
-             sodipodi:type="arc"
-             style="fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#0000ff;stroke-width:0.53125;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
-             id="path2645"
-             sodipodi:cx="-44.990662"
-             sodipodi:cy="199.31558"
-             sodipodi:rx="37.886871"
-             sodipodi:ry="34.92696"
-             d="M -7.1037903,199.31558 A 37.886871,34.92696 0 1 1 -82.877533,199.31558 A 37.886871,34.92696 0 1 1 -7.1037903,199.31558 z"
-             transform="translate(57.004119,-19.779777)" />
-          <text
-             xml:space="preserve"
-             style="font-size:22px;font-style:normal;font-weight:normal;fill:#0000ff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
-             x="2.1941156"
-             y="193.32523"
-             id="text2647"><tspan
-               sodipodi:role="line"
-               id="tspan2649"
-               x="2.1941156"
-               y="193.32523"
-               style="font-size:40px;font-weight:bold;writing-mode:lr-tb;fill:#0000ff">4</tspan></text>
-        </g>
-      </g>
-      <g
-         transform="translate(761.79138,39.079056)"
+         transform="translate(623.40048,72.41409)"
          id="g2692">
         <path
            style="fill:none;fill-rule:evenodd;stroke:#008000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
              sodipodi:role="line">replacement</tspan></text>
       </g>
       <g
-         transform="translate(644.47732,-30.304576)"
+         transform="translate(506.08642,3.0304583)"
          id="g2697">
         <path
            id="path2651"
              y="639.0575">default path</tspan></text>
       </g>
     </g>
-    <g
-       id="g2702"
-       transform="translate(34.285714,211.42857)">
-      <g
-         transform="translate(251.96414,340.66884)"
-         id="g2706">
-        <path
-           sodipodi:type="arc"
-           style="fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#0000ff;stroke-width:0.53125;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
-           id="path2708"
-           sodipodi:cx="-44.990662"
-           sodipodi:cy="199.31558"
-           sodipodi:rx="37.886871"
-           sodipodi:ry="34.92696"
-           d="M -7.1037903,199.31558 A 37.886871,34.92696 0 1 1 -82.877533,199.31558 A 37.886871,34.92696 0 1 1 -7.1037903,199.31558 z"
-           transform="translate(57.004119,-19.779777)" />
-        <text
-           xml:space="preserve"
-           style="font-size:22px;font-style:normal;font-weight:normal;fill:#0000ff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
-           x="2.1941156"
-           y="193.32523"
-           id="text2710"><tspan
-             sodipodi:role="line"
-             id="tspan2712"
-             x="2.1941156"
-             y="193.32523"
-             style="font-size:40px;font-weight:bold;writing-mode:lr-tb;fill:#0000ff">5</tspan></text>
-      </g>
-    </g>
+    <path
+       sodipodi:type="arc"
+       style="fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#0000ff;stroke-width:0.53125;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+       id="path2708"
+       sodipodi:cx="-44.990662"
+       sodipodi:cy="199.31558"
+       sodipodi:rx="37.886871"
+       sodipodi:ry="34.92696"
+       d="M -7.1037903,199.31558 A 37.886871,34.92696 0 1 1 -82.877533,199.31558 A 37.886871,34.92696 0 1 1 -7.1037903,199.31558 z"
+       transform="translate(334.68254,532.67477)" />
+    <text
+       xml:space="preserve"
+       style="font-size:22px;font-style:normal;font-weight:normal;fill:#0000ff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
+       x="277.30112"
+       y="745.77979"
+       id="text2710"><tspan
+         sodipodi:role="line"
+         id="tspan2712"
+         x="277.30112"
+         y="745.77979"
+         style="font-size:40px;font-weight:bold;writing-mode:lr-tb;fill:#0000ff">5</tspan></text>
     <g
        id="g3424"
-       transform="translate(136.69471,-44.530819)">
+       transform="translate(132.6541,-44.530819)">
       <g
          id="g2627"
          transform="translate(4.459029,170.74042)">
           <text
              id="text2635"
              y="193.32523"
-             x="2.1941156"
+             x="-1.0201701"
              style="font-size:22px;font-style:normal;font-weight:normal;fill:#0000ff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
              xml:space="preserve"><tspan
                style="font-size:40px;font-weight:bold;writing-mode:lr-tb;fill:#0000ff"
                y="193.32523"
-               x="2.1941156"
+               x="-1.0201701"
                id="tspan2637"
                sodipodi:role="line">3</tspan></text>
         </g>
          xml:space="preserve"
          id="flowRoot3349"
          style="font-size:22px;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"
-         transform="translate(-26.018863,297.22995)"><flowRegion
+         transform="translate(-10.866575,296.2198)"><flowRegion
            id="flowRegion3351"><rect
              id="rect3353"
              width="282.84271"
        xml:space="preserve"
        id="flowRoot3363"
        style="font-size:22px;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"
-       transform="translate(179.80715,604.07123)"><flowRegion
+       transform="translate(179.80715,582.85803)"><flowRegion
          id="flowRegion3365"><rect
            id="rect3367"
-           width="339.41125"
-           height="78.791901"
+           width="437.39606"
+           height="111.11678"
            x="149.50258"
            y="102.81879" /></flowRegion><flowPara
          id="flowPara3371">Copy the replacement (Ctrl+C)</flowPara><flowPara
-         id="flowPara3383">and paste it onto the &quot;Stroke path&quot; parameter</flowPara></flowRoot>    <path
+         id="flowPara2638">and paste it onto the &quot;Stroke path&quot; </flowPara><flowPara
+         id="flowPara2642">(press F2 to edit the original paths!)</flowPara></flowRoot>    <path
        id="path3436"
        style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
-       d="M 491.27777,59.867337 L 489.25747,207.3496 M 509.46052,231.59326 L 644.82096,231.59326" />
+       d="M 511.48082,60.87749 L 509.46052,208.35975 M 529.66357,232.60341 L 665.02401,232.60341" />
     <path
        d="M 104.492,299.447 L 122.674,471.173 M 103.987,336.317 L 156.515,471.173 M 103.482,373.188 L 190.355,471.173 M 102.977,410.059 L 224.195,471.173 M 102.471,446.929 L 258.035,471.173"
        style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
        inkscape:path-effect="#path-effect3449"
        id="path3454"
        style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
-       d="M 497.984,779.627 C 527.967,851.443 529.039,904.218 515.1,951.466 M 498.959,817.877 C 539.023,869.345 551.514,911.783 550.65,953.059 M 499.935,856.127 C 550.079,887.246 573.989,919.348 586.2,954.652 M 500.911,894.377 C 561.135,905.147 596.464,926.913 621.75,956.244 M 501.886,932.627 C 572.19,923.048 618.939,934.478 657.299,957.837" />
-  </g>
+       d="M 498.385,779.585 C 527.08,851.537 528.412,904.284 515.563,951.417 M 498.289,818.138 C 540.503,868.768 552.56,911.375 549.876,953.36 M 498.983,856.971 C 552.182,885.381 575.475,918.03 585.1,955.626 M 500.425,895.341 C 562.208,903.018 597.223,925.408 621.188,957.357 M 501.854,932.833 C 572.261,922.593 618.989,934.156 657.262,958.075" />
+    <flowRoot
+       xml:space="preserve"
+       id="flowRoot2591"
+       style="font-size:22px;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"
+       transform="translate(-505.07627,-66.670068)"><flowRegion
+         id="flowRegion2593"><rect
+           id="rect2595"
+           width="454.56863"
+           height="93.944183"
+           x="601.04077"
+           y="580.62097"
+           style="font-size:22px" /></flowRegion><flowPara
+         id="flowPara2597">Draw a path that will replace the default horizontal connecting path</flowPara></flowRoot>  </g>
 </svg>