Threshold Feedback
/**
* Copyright Quasimondo ( http://wonderfl.net/user/Quasimondo )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/nz8i
*/
package {
import flash.display.Bitmap;
import flash.geom.Point;
import flash.display.BitmapData;
import flash.display.Sprite;
public class ThresholdFeedback extends Sprite {
public function ThresholdFeedback() {
var map:BitmapData = new BitmapData(512,512,false,0);
map.threshold(map,map.rect, new Point(3,2),"==",0x00,0xffffffff,0xff);
map.threshold(map,map.rect, new Point(0,3),"==",0xff,0xff000000,0xff);
addChild(new Bitmap(map));
}
}
}