NoiseMaker
Olsen Noise algorithm for infinite scoped deterministic fractal noise. The noise is deterministic so it's perfectly for tiling and returning to the same postion and having the same regenerated noise. The algorithm is infinite and scoped so only enough values as needed are generated.
from PIL import Image
from noisemaker import noise
Image.fromarray(noise((250, 100), (0, 0), transpose=True)).save("noise0.png")
Image.fromarray(noise((250, 100), (0, 100), transpose=True)).save("noise1.png")
Image.fromarray(noise((250, 100), (0, 200), transpose=True)).save("noise2.png")
The noise() algorithm requires only the first shape parameter. The transpose flag is to covert it into an image ready format.
Tiling
Note these are three different images. Simply adjacent in the requested space, so they stack.
Box Kernel (Default)
from noisemaker import noise
from PIL import Image
Image.fromarray(noise(500, 500, iteration=5)).save("noise-5.png")
Gaussian Kernel
There is also a gaussian kernel availible, which is about a third the blur factor of the default box blur:
from noisemaker import noise, GAUSSIAN
from PIL import Image
Image.fromarray(noise((500, 500), iteration=5, kernel=GAUSSIAN)).save("noise-5g.png")
Release files for noisemaker 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| noisemaker-0.0.1.tar.gz | 3.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| noisemaker-0.0.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 6.0 kB
Release files / noisemaker-0.0.1.tar.gz
| Download URL | noisemaker-0.0.1.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1262438fad1b099b539911136b2391775477fcbface60808163bf57b2534dee5
|
|
BLAKE2b-256 checksum How to use checksums |
128bc1ee32c93a8c5977785c323f478a0370e5871acb2691cb3c21b6f63b83df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
|
Release files / noisemaker-0.0.1-py2.py3-none-any.whl
| Download URL | noisemaker-0.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
9351f3c90199b5cf156ca2eb0c7da0f38f50304ea7a266280fdc9c50d107d1ff
|
|
BLAKE2b-256 checksum How to use checksums |
a80507e2cc429d545663204a5864ae03d88072fb22db681d4bc65292f923fb6a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
|