A Glitch inside of Perlin Noise

by Quasimondo
♥7 | Line 22 | Modified 2010-08-09 05:08:11 | 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/uzrJ
 */

package {
    import flash.display.Bitmap;
    import flash.display.BitmapData;
    import flash.display.Sprite;
    public class PerlinGlitch extends Sprite {
        public function PerlinGlitch() {
            // Look what I found inside Perlin Noise
            glitch()
        }
        
        private function glitch():void
        {
            var bm:BitmapData = new BitmapData(200,200,true,0);
            bm.perlinNoise( 16,16,3,13309924,false,false,1,true);
            addChild( new Bitmap( bm ) );
            
            bm = new BitmapData(200,200,true,0);
            bm.perlinNoise( 64,64,3,13309924,false,true,1,true);
            addChild( new Bitmap( bm ) ).x = 200;
            
             bm = new BitmapData(400,200,true,0);
            bm.perlinNoise( 8,8,6,13309924,false,true,1,true);
            addChild( new Bitmap( bm ) ).y = 200;
         }
     }
}

Forked