From 071a485f2b4f99c1086bd06ce0241260464de546 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matt=C3=A9o=20Delabre?= Date: Wed, 16 Dec 2015 23:05:41 +0100 Subject: [PATCH] :bulb: Update utils --- scripts/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/utils.js b/scripts/utils.js index 2bcc9ea..59aa572 100644 --- a/scripts/utils.js +++ b/scripts/utils.js @@ -19,7 +19,7 @@ export const randomColor = () => { const color = []; for (let i = 0; i < 3; i++) { - color.push(parseFloat(Math.random().toFixed(2)) * 255); + color.push(Math.round((Math.random().toFixed(2)) * 255)); } return color;