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;