From 4dba5db28df1903112d7e6630caad7c744de7380 Mon Sep 17 00:00:00 2001 From: griffpatch <griffpatch@users.noreply.github.com> Date: Thu, 9 Feb 2017 08:36:57 +0000 Subject: [PATCH] Alpha channel conversion I wasn't so clever with this - I'm sorry. Now that I have managed to link up my local render & vm projects I am able to fix the issue properly. Many appologies! --- src/PenSkin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PenSkin.js b/src/PenSkin.js index ba94d234..89b09bc5 100644 --- a/src/PenSkin.js +++ b/src/PenSkin.js @@ -181,7 +181,7 @@ class PenSkin extends Skin { const r = Math.round(color4f[0] * 255); const g = Math.round(color4f[1] * 255); const b = Math.round(color4f[2] * 255); - const a = Math.round(color4f[3]); // Alpha is 0 to 1 (not 0 to 255 like r,g,b) + const a = color4f[3]; // Alpha is 0 to 1 (not 0 to 255 like r,g,b) context.strokeStyle = `rgba(${r},${g},${b},${a})`; context.lineCap = 'round';