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

PaletteMap Feedback

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

package {
    import flash.display.Bitmap;
    import flash.geom.Point;
    import flash.display.BitmapData;
    import flash.display.Sprite;
    
    public class PaletteMapFeedback extends Sprite {
        
        public function PaletteMapFeedback() {
           var map:BitmapData = new BitmapData(512,512,true,0);
           map.paletteMap(map,map.rect,new Point(16,16),[0xff08e010],[0xd0701020]);
           addChild(new Bitmap(map));
            
            
        }
    }
}