Skip to content

Commit

Permalink
Replaced full path with relative path in samples.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmester committed Mar 7, 2018
1 parent 7610721 commit b613d7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ ctx.lineTo(90, 50);
ctx.lineTo(50, 90);
ctx.fill();

var testpng = fs.createWriteStream("C:\\test.png");
var testpng = fs.createWriteStream("test.png");
testpng.write(canvas.toPng());
testpng.close();
```
Expand Down
3 changes: 2 additions & 1 deletion sample.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ var canvas = canvasRenderer.createCanvas(100, 100);
canvas.backColor = "#00000000";

var ctx = canvas.getContext("2d");

ctx.fillStyle = "#f00";

ctx.rotate(0.1);
Expand All @@ -33,7 +34,7 @@ ctx.fill();

ctx.clearRect(30, 30, 20, 20);

var testpng = fs.createWriteStream("M:\\output1704.png");
var testpng = fs.createWriteStream("test.png");
testpng.write(canvas.toPng({ "Software": "CanvasRenderer" }));
testpng.close();

0 comments on commit b613d7e

Please sign in to comment.