renamed the Crop filter to Mask

This commit is contained in:
Eric Rowell
2013-04-04 22:22:28 -07:00
parent 171b2a57d3
commit 2cb39f087c
4 changed files with 8 additions and 8 deletions

View File

@@ -163,7 +163,7 @@
Kinetic.Filters = Kinetic.Filters || {};
/**
* Crop Filter
* Mask Filter
*
* Only crop unicolor background images for instance
*
@@ -173,7 +173,7 @@
* @param {Object} config
* @param {Integer} config.threshold The RGB euclidian distance threshold (default : 10)
*/
Kinetic.Filters.Crop = function(idata, config) {
Kinetic.Filters.Mask = function(idata, config) {
// Detect pixels close to the background color
var mask = backgroundMask(idata, config);
if (mask) {