From 3f5b9516c61d4d849e9cf94518d18d9b7caab6d5 Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Fri, 5 Jun 2015 18:04:59 +0200 Subject: [PATCH] Stroke text width increased --- js/prototype/Coin.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/prototype/Coin.js b/js/prototype/Coin.js index d560e7a..f67bac6 100644 --- a/js/prototype/Coin.js +++ b/js/prototype/Coin.js @@ -49,11 +49,12 @@ Coin.update = function() { Coin.ctx.strokeStyle = 'black'; Coin.ctx.font = "30px Verdana"; - Coin.ctx.fillText(Coin.total - 1 + " / " + 8, x, 50); + Coin.ctx.lineWidth = 5; Coin.ctx.strokeText(Coin.total - 1 + " / " + 8, x, 50); + Coin.ctx.fillText(Coin.total - 1 + " / " + 8, x, 50); - Coin.ctx.fill(); Coin.ctx.stroke(); + Coin.ctx.fill(); }