Infinite Scoped Deterministic Fractal Noise
Project description
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")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file noisemaker-0.0.1.tar.gz
.
File metadata
- Download URL: noisemaker-0.0.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1262438fad1b099b539911136b2391775477fcbface60808163bf57b2534dee5 |
|
MD5 | a5d850a4ac42c8e9ba3d01f97be90fcd |
|
BLAKE2b-256 | 128bc1ee32c93a8c5977785c323f478a0370e5871acb2691cb3c21b6f63b83df |
File details
Details for the file noisemaker-0.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: noisemaker-0.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 2, Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9351f3c90199b5cf156ca2eb0c7da0f38f50304ea7a266280fdc9c50d107d1ff |
|
MD5 | ffd10cd8e70a4078a5ae835ea19bd82b |
|
BLAKE2b-256 | a80507e2cc429d545663204a5864ae03d88072fb22db681d4bc65292f923fb6a |