aboutsummaryrefslogtreecommitdiff
path: root/benchmark/scripts/benchmark.js
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/scripts/benchmark.js')
-rw-r--r--benchmark/scripts/benchmark.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/benchmark/scripts/benchmark.js b/benchmark/scripts/benchmark.js
index ef5590d..826d462 100644
--- a/benchmark/scripts/benchmark.js
+++ b/benchmark/scripts/benchmark.js
@@ -12,7 +12,10 @@ function Benchmark()
if(bid.substr(0,1) != "b" || bid.indexOf("_inv") > -1){ continue; }
let bc = theme.active[bid]
let rating = new Color(fc).contrast(new Color(bc));
- if(rating < 1.5){
+ if(rating == 1){
+ html += `Overlap: <b>${fid}</b> ${bid} <i>${bc}</i>\n`
+ }
+ else if(rating < 1.5){
html += `Low contrast(${rating.toFixed(2)}): <b>${fid}</b> ${bid} <i>${bc}</i>\n`
}
count += 1