浏览代码

Make the Similar colors detector more relax

Gaël Métais 4 年之前
父节点
当前提交
3123e90d5a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/tools/colorDiff.js

+ 1 - 1
lib/tools/colorDiff.js

@@ -5,7 +5,7 @@ var parse   = require('parse-color');
 
 
 var colorDiff = function() {
 var colorDiff = function() {
 
 
-    var COLOR_DIFF_THRESHOLD = 0.9;
+    var COLOR_DIFF_THRESHOLD = 0.7;
 
 
     this.compareAllColors = function(data) {
     this.compareAllColors = function(data) {
         debug('Starting to compare all colors...');
         debug('Starting to compare all colors...');