Navigation Menu

Skip to content

Commit

Permalink
Merge commit '4fa5109edc6a04c9b871593b050886ff4cb7c1e1' into 0.9.8
Browse files Browse the repository at this point in the history
  • Loading branch information
annasob committed Oct 22, 2010
2 parents 494a8a3 + 4fa5109 commit 0b96216
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
Binary file added examples/seneca/loadShape/b.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions examples/seneca/loadShape/b.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions examples/seneca/loadShape/loadShape11.html
Expand Up @@ -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);
}
</script><canvas id="display" ></canvas>
<div> The actual shape: <img src="transform2.jpg"></div>
<div> The actual shape: <img src="b.jpg"></div>
</body>
</html>

2 changes: 2 additions & 0 deletions processing.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 0b96216

Please sign in to comment.