From a1d7b3fa6bbc1f27367d63ba31d247258a7e640e Mon Sep 17 00:00:00 2001 From: haeringer Date: Thu, 16 Jan 2014 23:01:03 +0100 Subject: [PATCH 1/9] first draft to brighten up the diff --- tasks/assets/scripts/worker.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tasks/assets/scripts/worker.js b/tasks/assets/scripts/worker.js index 74dd88c..708ed8a 100644 --- a/tasks/assets/scripts/worker.js +++ b/tasks/assets/scripts/worker.js @@ -48,6 +48,7 @@ function diff( pixelsA, pixelsB, config ) { diffAmount = 0, threshold = ~~config.threshold, color = getHighlightColor ( config.higlightColor ), + adjustment = 150, i; @@ -62,6 +63,10 @@ function diff( pixelsA, pixelsB, config ) { pixelsC.data[ i + 1 ] = color[ 1 ]; // g pixelsC.data[ i + 2 ] = color[ 2 ]; // b diffAmount++; + } else { + pixelsC.data[ i ] += adjustment; // r + pixelsC.data[ i + 1 ] += adjustment; // g + pixelsC.data[ i + 2 ] += adjustment; // b } } From d333673f9acf308c83f8d4fa2af9a6ed3b249e65 Mon Sep 17 00:00:00 2001 From: haeringer Date: Mon, 20 Jan 2014 20:56:32 +0100 Subject: [PATCH 2/9] Fixes #19 --- tasks/tpl/canvas.tpl | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tasks/tpl/canvas.tpl b/tasks/tpl/canvas.tpl index 594fd14..93ff7fc 100644 --- a/tasks/tpl/canvas.tpl +++ b/tasks/tpl/canvas.tpl @@ -225,15 +225,16 @@