Ok, here we are… once again speaking about perlinNoise.
PerlinNoise is a super-cool function… nothing to object, it gives you the ability to render a smooth random varying surface on a bitmapdata.
You can use it for random behaviours, for mountains generation, for lots lots of stuff resembling the inner and deep variations hidden in nature… but lets say it: it’s kinda boring to look at.
Tired to have always the same old plain smooth boring perlinNoise? Try this simple variation.
The main concept is EXTREMELY simple and is a trick I inherited from photoshop “Render clouds / Render difference clouds” filters.
The logic is this:
- Apply a simple perlinNoise method to a bitmapData
- For i=0 to i=N…
- Apply a simple perlinNoise method to a second bitmapData with a different seed at every iteration
- Composite the second bitmapData onto the first with the draw() method and a BlendMode.DIFFERENCE blend mode.
Look at the simple code:





















This blog is about actionscript 3, Flex and Adobe AIR developing and fun.
I am Pierluigi Pesenti (aka Panta) and here I post my experiments and classes done in my little spare time.
Hope You'll enjoy it and leave some comment. Also don't forget to subscribe to my feed if you want to keep updated about new posts.