diff --git a/demoassets/main.js b/demoassets/main.js
index 5f43e61..8bae9f3 100644
--- a/demoassets/main.js
+++ b/demoassets/main.js
@@ -121,6 +121,10 @@ $(function(){
resembleControl.ignoreAntialiasing();
}
else
+ if($this.is('#alpha')){
+ resembleControl.ignoreAlpha();
+ }
+ else
if($this.is('#same-size')){
resembleControl.scaleToSameSize();
}
diff --git a/index.html b/index.html
index fab28ca..590da01 100644
--- a/index.html
+++ b/index.html
@@ -98,6 +98,7 @@
+
diff --git a/resemble.js b/resemble.js
index 5278074..f2e9121 100644
--- a/resemble.js
+++ b/resemble.js
@@ -692,6 +692,21 @@ URL: https://github.com/Huddle/Resemble.js
if(hasMethod) { param(); }
return self;
},
+ ignoreAlpha: function() {
+
+ tolerance.red = 16;
+ tolerance.green = 16;
+ tolerance.blue = 16;
+ tolerance.alpha = 255;
+ tolerance.minBrightness = 16;
+ tolerance.maxBrightness = 240;
+
+ ignoreAntialiasing = false;
+ ignoreColors = false;
+
+ if(hasMethod) { param(); }
+ return self;
+ },
repaint: function(){
if(hasMethod) { param(); }
return self;