From b613d7eae8238526f9fe508d3e202572ee3a9367 Mon Sep 17 00:00:00 2001 From: daniel Date: Wed, 7 Mar 2018 19:43:52 +0100 Subject: [PATCH] Replaced full path with relative path in samples. --- README.md | 2 +- sample.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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();