forked from: PaletteMap Feedback Waves
/**
* Copyright jkwestin ( http://wonderfl.net/user/jkwestin )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/5twv
*/
// forked from Quasimondo's PaletteMap Feedback Waves
// 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(0,0));
}
}
}