Kirk Trombley 4 жил өмнө
parent
commit
2a0fe1a5dc

+ 1 - 1
client/src/hooks/useMarkersFromGuesses/getColorGenerator.js

@@ -5,9 +5,9 @@ const goldenRatioConj = 0.618033988749895;
 const getColorGenerator = () => {
   let h = 0;
   const nextColor = () => {
+    const h6 = h * 6;
     h += goldenRatioConj;
     h %= 1;
-    const h6 = h * 6;
     const hIndex = Math.floor(h6);
     const f = 0.45 * (h6 - hIndex);
     const q = 0.9 - f;