This looks pretty cool, Perlin noise is used all over the place in procedural content generation. I recall Minecraft's terrain is generated using it.
I have no idea why the author didn't include a usable demo though. It would be nice to try out the texture generation without copy-and-pasting, saving and running the code.