aboutsummaryrefslogtreecommitdiff
path: root/benchmark/scripts/benchmark.js
diff options
context:
space:
mode:
authorDevine Lu Linvega <aliceffekt@gmail.com>2018-09-15 15:10:52 +1200
committerDevine Lu Linvega <aliceffekt@gmail.com>2018-09-15 15:10:52 +1200
commitd9ad5fb9769dfb24a21e40e7c24e27ee0a92b9a4 (patch)
tree934572dddc7bb50f096bcfa204da378556e87eaf /benchmark/scripts/benchmark.js
parent70aa9f1773a82afe09d7a764028408a003279856 (diff)
*
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