forked from: forked from: Threshold Feedback

by Quasimondo forked from forked from: Threshold Feedback (diff: 8)
♥0 | Line 17 | Modified 2010-07-13 08:30:58 | MIT License
play

ActionScript3 source code

/**
 * Copyright Quasimondo ( http://wonderfl.net/user/Quasimondo )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/dCr8
 */

// forked from Quasimondo's forked from: Threshold Feedback
// forked from Quasimondo's Threshold Feedback
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,0),"!=",0xff,0xffffffff,0xff);
            map.threshold(map,map.rect, new Point(5,0),"==",0xff,0xff000000,0xff);
            
            
            map.threshold(map,map.rect, new Point(0,1),"==",0xff,0xffffffff,0xff);
            map.threshold(map,map.rect, new Point(0,3),"==",0xff,0xff000000,0xff);
            map.threshold(map,map.rect, new Point(0,3),"!=",0xff,0xffffffff,0xff);
            
            
            
            
            addChild(new Bitmap(map));
        }
    }
}