diff --git a/examples/seneca/loadShape/b.jpg b/examples/seneca/loadShape/b.jpg new file mode 100644 index 000000000..a562a9a95 Binary files /dev/null and b/examples/seneca/loadShape/b.jpg differ diff --git a/examples/seneca/loadShape/b.svg b/examples/seneca/loadShape/b.svg new file mode 100644 index 000000000..d40873c7f --- /dev/null +++ b/examples/seneca/loadShape/b.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/examples/seneca/loadShape/loadShape11.html b/examples/seneca/loadShape/loadShape11.html index e678ca5a3..b312f3109 100644 --- a/examples/seneca/loadShape/loadShape11.html +++ b/examples/seneca/loadShape/loadShape11.html @@ -14,17 +14,17 @@ void setup() { background(125); - size(500,400); - s = loadShape("transform2.svg"); + size(800,850); + s = loadShape("b.svg"); smooth(); noLoop(); } void draw() { - shape(s,50,100); + shape(s,10,10); } -
The actual shape:
+
The actual shape:
diff --git a/processing.js b/processing.js index 2a766e30a..ddfc9a6a3 100644 --- a/processing.js +++ b/processing.js @@ -2622,6 +2622,8 @@ break; case 109: // m - move to (relative) if (tmpArray.length >= 2 && tmpArray.length % 2 === 0) { // need one+ pairs of co-ordinates + cx += tmpArray[0]; + cy += tmpArray[1]; this.parsePathMoveto(cx,cy); if (tmpArray.length > 2) { for (j = 2; j < tmpArray.length; j+=2) {