diff --git a/README.md b/README.md index b6b65b2..de08b0d 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,13 @@ python-noise ============ -This Python module is designed to demonstrite texture generation using classic Perlin noise. It can generate cloud, wood and marble black-and-white textures. The only external dependency is Python Imaging Library(PIL) [1] +This Python module is designed to demonstrite texture generation using classic Perlin noise. It can generate cloud, wood and marble black-and-white textures. The only external dependency is Python Imaging Library (pillow). Useful links -[1] PIL - https://pypi.python.org/pypi/PIL -[2] Making Noise by Ken Perlin - http://www.noisemachine.com/talk1/index.html -[3] Perlin Noise by Hugo Elias- http://freespace.virgin.net/hugo.elias/models/m_perlin.htm -[4] The Perlin noise math FAQ by Matt Zucker - http://webstaff.itn.liu.se/~stegu/TNM022-2005/perlinnoiselinks/perlin-noise-math-faq.html -[5] Generating Perlin Noise by Andreas Jonsson - http://www.angelcode.com/dev/perlin/perlin.html -[6] Texture Generation using Random Noise - http://lodev.org/cgtutor/randomnoise.html -[7] 3D Advanced Lessons on scratchapixel - http://www.scratchapixel.com/lessons/3d-advanced-lessons/noise-part-1/pattern-examples/ +1. [Python pillow](https://pypi.python.org/pypi/pillow) +2. [Making Noise by Ken Perlin](https://web.archive.org/web/20120104011651/http://www.noisemachine.com/talk1/index.html) +3. [Perlin Noise by Hugo Elias](https://web.archive.org/web/20160530124230/http://freespace.virgin.net/hugo.elias/models/m_perlin.htm) +4. [The Perlin noise math FAQ by Matt Zucker](https://mzucker.github.io/html/perlin-noise-math-faq.html) +5. [Generating Perlin Noise by Andreas Jonsson](http://www.angelcode.com/dev/perlin/perlin.html) +6. [Texture Generation using Random Noise](http://lodev.org/cgtutor/randomnoise.html) +7. [3D Advanced Lessons on scratchapixel](https://web.archive.org/web/20111107213449/http://www.scratchapixel.com/lessons/3d-advanced-lessons/noise-part-1/pattern-examples/) diff --git a/noise.py b/noise.py index ecbd06e..5f97922 100755 --- a/noise.py +++ b/noise.py @@ -1,6 +1,7 @@ #!/usr/bin/env python -import random, math, Image +from PIL import Image +import random, math """ Texture generation using Perlin noise