From 038e9579fc82d82b2a1765de14739fb6d20e4368 Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Fri, 10 Nov 2017 08:54:43 +1300 Subject: [PATCH] Export 512x512 PNGs --- sources/scripts/render.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sources/scripts/render.js b/sources/scripts/render.js index cfc7b7f..6e10fa0 100644 --- a/sources/scripts/render.js +++ b/sources/scripts/render.js @@ -3,7 +3,7 @@ function Render() this.el = document.createElement("canvas"); this.el.id = "render"; this.img = document.createElement("img"); - this.el.width = 300; this.el.height = 300; + this.el.width = 512; this.el.height = 512; this.draw = function() { @@ -12,8 +12,8 @@ function Render() var b64Start = 'data:image/svg+xml;base64,'; var image64 = b64Start + svg64; this.img.src = image64; - this.el.getContext('2d').clearRect(0, 0, 300, 300); - this.el.getContext('2d').drawImage(this.img, 0, 0); + this.el.getContext('2d').clearRect(0, 0, 512, 512); + this.el.getContext('2d').drawImage(this.img, 0, 0, 512, 512); } this.buffer = function()