From 2e6d61c7c23f701957dfd8cce5858b9fbec6424f Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Mon, 21 Sep 2020 14:14:15 -0700 Subject: [PATCH] Allow user colors to be more red --- test/userColorsTest.js | 2 +- webroot/js/utils/user-colors.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/userColorsTest.js b/test/userColorsTest.js index 59a34f053..1dcfaac32 100644 --- a/test/userColorsTest.js +++ b/test/userColorsTest.js @@ -30,7 +30,7 @@ function messageBubbleColorForString(str) { const saturation = 75; const lightness = 65; const alpha = 1.0; - const hue = parseInt(Math.abs(hash), 16) % 300; + const hue = parseInt(Math.abs(hash), 16) % 360; return `hsla(${hue}, ${saturation}%, ${lightness}%, ${alpha})`; } diff --git a/webroot/js/utils/user-colors.js b/webroot/js/utils/user-colors.js index dbb413dac..70b2e4832 100644 --- a/webroot/js/utils/user-colors.js +++ b/webroot/js/utils/user-colors.js @@ -9,7 +9,7 @@ export function messageBubbleColorForString(str) { const saturation = 75; const lightness = 65; const alpha = 1.0; - const hue = parseInt(Math.abs(hash), 16) % 300; + const hue = parseInt(Math.abs(hash), 16) % 360; return `hsla(${hue}, ${saturation}%, ${lightness}%, ${alpha})`; }