In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

Threshold Feedback

Get Adobe Flash player
by Quasimondo 13 Jul 2010
/**
 * 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));
            
        }
    }
}