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

A Glitch inside of Perlin Noise

Get Adobe Flash player
by Quasimondo 09 Aug 2010

    Talk

    Assembler at 09 Aug 2010 18:07
    Quasimondo! that's a name I haven't seen for a while. Good find!
    yonatan at 10 Aug 2010 00:29
    It happens with other seed values as well. Check out tencho's demo at http://wonderfl.net/c/d01w

    Tags

    Embed
/**
 * 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;
         }
     }
}