Ver código fonte

Fix initial cluster metric and pick random color on load

Kirk Trombley 3 anos atrás
pai
commit
c4aa5c5315
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      nearest.html

+ 2 - 2
nearest.html

@@ -22,7 +22,7 @@
       number: 10,
       useCluster: true,
       clusterSettings: {
-        sortMetric: "lightness",
+        sortMetric: "chroma",
         scaleOption: "direct",
         sortOrder: "max",
       },
@@ -69,7 +69,7 @@
       document.getElementById("sort-metric").firstChild.nextSibling.nextSibling.nextSibling.nextSibling.selected = true;
       document.getElementById("cluster-sort-metric").lastChild.previousSibling.previousSibling.selected = true;
       
-      onColorChanged(state, "#222222");
+      onRandomColor(state);
     }
   </script>
 </head>