소스 검색

Fix initial cluster metric and pick random color on load

Kirk Trombley 3 년 전
부모
커밋
c4aa5c5315
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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>