From 95bf865a0bb02788c6615d01657534b380ae6afd Mon Sep 17 00:00:00 2001 From: Alexander Bazo Date: Mon, 14 Oct 2019 15:18:11 +0200 Subject: [PATCH] Fix bug in color generator --- lib/utils/Colors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/Colors.js b/lib/utils/Colors.js index dfa1eb1..c9d3887 100644 --- a/lib/utils/Colors.js +++ b/lib/utils/Colors.js @@ -2,7 +2,7 @@ function createRandomColorChannel() { let value = Math.floor(Math.random() * 256); - value = (value + 255) / 2; + value = Math.floor((value + 255) / 2); return value; } -- libgit2 0.26.0