Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

perlin-0.0.2.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

perlin-0.0.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

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

Hashes for perlin-0.0.2.tar.gz
Algorithm Hash digest
SHA256 aacc848d4d3b14cae22d1fcd11b5bda94d76b797548869d037ae2c054a46067e
MD5 f09ba29a9c9c71ce78fca81f94756387
BLAKE2b-256 dcca6e3aea658fa4b71df2b8034266ed8bc79cf39942438b8519a6283ce95bc9

See more details on using hashes here.

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

Hashes for perlin-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2f400be968174b50435762983e114e58720e39ab43205e00c4f0b649fe4eb04b
MD5 98d07e5d78432a5f93dae2260c53098d
BLAKE2b-256 7283255a458b1b72da2e648340559533b8e832c3a4655ab2d1b32c3a9acc564c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page