From f7e20d0ae0273dbb9bc2c86a4715e53707279aee Mon Sep 17 00:00:00 2001 From: neauoire Date: Sat, 9 Nov 2019 11:11:11 -0500 Subject: * --- editor/scripts/benchmark.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'editor/scripts/benchmark.js') diff --git a/editor/scripts/benchmark.js b/editor/scripts/benchmark.js index 84c6d1b..69032b2 100644 --- a/editor/scripts/benchmark.js +++ b/editor/scripts/benchmark.js @@ -16,6 +16,7 @@ function Benchmark () { } this.refresh = function () { + console.log('refresh') const el = document.getElementById('print') const html = '' const count = 0 @@ -23,9 +24,9 @@ function Benchmark () { console.log(matches) for (const match of matches) { + const rating = new Color(match.fc).contrast(new Color(match.bc)) const cell = document.getElementById(match.id) - console.log(cell, match.id) - // cell.textContent = '0.0' + cell.textContent = `${rating.toFixed(2)}` } el.innerHTML = html @@ -34,8 +35,6 @@ function Benchmark () { this.log = function (id, fc, bc) { let html = '' - const rating = new Color(fc).contrast(new Color(bc)) - if (rating == 1) { html += `Overlap: ${id} ${bc}\n` } else if (rating < 1.5) { -- cgit v1.2.3