Continuous Perlin Noise
You probably know the situation. It’s 2 am and you can’t sleep because you’r thinking about the big questions of life:
Why are we here? What are we here for? Can you make seamless Perlin noise tiles?
That last question kept me awake last night. After an hour thinking about using overlapping tiles with blurred edges and blend modes or writing my own Perlin noise, I decided to get back up and give it a try. But to my surprise, when looking at the api, I found that the smart engineers of adobe already thought of that. The BitmapData perlinnoise method has a “stitch” property. So, no challenges here I guess.
public function perlinNoise(baseX:Number, baseY:Number, numOctaves:uint,randomSeed:int, stitch:Boolean, fractalNoise:Boolean, channelOptions:uint = 7,grayScale:Boolean = false, offsets:Array = null):void