From 09c923dbbaa6e47c569d4717675e0837e74892fe Mon Sep 17 00:00:00 2001 From: Kamil Bielawski Date: Mon, 22 Sep 2014 01:30:55 +0200 Subject: [PATCH 1/2] Added two distance-based types of errorPixelTransform --- demoassets/main.js | 14 ++++++++++++++ index.html | 4 +++- resemble.js | 21 +++++++++++++++++++++ 3 files changed, 38 insertions(+), 1 deletion(-) diff --git a/demoassets/main.js b/demoassets/main.js index a3371c9..0c31527 100644 --- a/demoassets/main.js +++ b/demoassets/main.js @@ -151,6 +151,20 @@ $(function(){ resembleControl.repaint(); } else + if($this.is('#flatWithDistanceBasedIntensity')){ + resemble.outputSettings({ + errorType: 'flatWithDistanceBasedIntensity' + }); + resembleControl.repaint(); + } + else + if($this.is('#movementWithDistanceBasedIntensity')){ + resemble.outputSettings({ + errorType: 'movementWithDistanceBasedIntensity' + }); + resembleControl.repaint(); + } + else if($this.is('#opaque')){ resemble.outputSettings({ transparency: 1 diff --git a/index.html b/index.html index 99408a2..59b10ec 100644 --- a/index.html +++ b/index.html @@ -102,6 +102,8 @@ +
+
- +
+
+