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 Waves

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

// forked from Quasimondo's forked from: PaletteMap Feedback
// forked from Quasimondo's PaletteMap Feedback
package {
    import flash.events.Event;
    import flash.display.Bitmap;
    import flash.geom.Point;
    import flash.display.BitmapData;
    import flash.display.Sprite;
    
    public class PaletteMapFeedback extends Sprite {
        private var map:BitmapData;
        private var offsets:Array;
        
        public function PaletteMapFeedback() {
            offsets = [ new Point(),new Point()];
            map = new BitmapData(512,512,false,0);
            addChild(new Bitmap(map));
            stage.addEventListener( Event.ENTER_FRAME, onEnterFrame );
          }
         
         private function onEnterFrame( event:Event ):void
         {
            offsets[0].x -= 0.4;
            offsets[1].y += 1;
            
            map.perlinNoise(73,40,2,1234,false,true,6,false, offsets);
            map.paletteMap(map,map.rect,new Point(1,0),[0x01fe01]);           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
         }

    }
}