A perlin nosie library written in python
Project description
perlin
======
Create perlin noise in 1D, 2D, and 3D!
Features
- 1D perlin noise
- 2D perlin noise
- 3D perlin noise
- Seed capability
- Tested
- Completly written in python
- No dependencies
Usage
This library can be used for generating random terrain for games or getting perlin noise. This library also supports octaves.
Example
import perlin
p = perlin.Perlin(6789) #6789 is the seed
print(p.one(0)) #1D, 0 is the X value
print(p.two(0, 1)) #2D, 0 is the X value and 1 is the Y value
print(p.three(0, 1, 2)) #3D, 0 is the X value, 1 is the Y value, 2 is the Z value
print(p.one_octave(0)) #Use this for octaves, you can ajust the octave variables but this gives you 2 octaves
Know limitations
Slower than noise library Slower with octaves (Work in progress) Some bugs on different seeds
New Features
Now has octave support!
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file perlin-0.0.2.tar.gz.
File metadata
- Download URL: perlin-0.0.2.tar.gz
- Upload date:
- Size: 2.6 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.48.2 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aacc848d4d3b14cae22d1fcd11b5bda94d76b797548869d037ae2c054a46067e
|
|
| MD5 |
f09ba29a9c9c71ce78fca81f94756387
|
|
| BLAKE2b-256 |
dcca6e3aea658fa4b71df2b8034266ed8bc79cf39942438b8519a6283ce95bc9
|
File details
Details for the file perlin-0.0.2-py3-none-any.whl.
File metadata
- Download URL: perlin-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: 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.48.2 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f400be968174b50435762983e114e58720e39ab43205e00c4f0b649fe4eb04b
|
|
| MD5 |
98d07e5d78432a5f93dae2260c53098d
|
|
| BLAKE2b-256 |
7283255a458b1b72da2e648340559533b8e832c3a4655ab2d1b32c3a9acc564c
|