diff --git a/README.md b/README.md index 59d4d1c..9a0c05b 100644 --- a/README.md +++ b/README.md @@ -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(); ``` diff --git a/sample.js b/sample.js index d367141..5c79439 100644 --- a/sample.js +++ b/sample.js @@ -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); @@ -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();