Skip to main content

A simple library to generate noisemaps.

Project description

Noisemap

A simple library for python which returns a noisemap as a 2D numpy array.

Installation

pip install noisemap

Usage

Functions

Mapgen

Mapgen(size, smoothness)

Parameters
size

size defines how many data points are in the array. The noisemaps generated are always square, so a map with size 5 would be a 5x5 2D array.

smoothness

smoothness affects how smoothed out the noisemap is. A smoothness of 0 would be a grid of completely random numbers, whereas a higher smoothness would have each data point be relatively close in value to its adjacent data points.

Notes
  • All datapoints are floating point numbers generated with random.random(). This means you can affect the numbers in the noisemap with random.seed(seed).
  • Smoothing can take some time depending on the size of the grid and the amount of smoothing to be done.

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

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

Source Distribution

Noisemap-1.0.tar.gz (1.9 kB view details)

Uploaded Source

File details

Details for the file Noisemap-1.0.tar.gz.

File metadata

  • Download URL: Noisemap-1.0.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for Noisemap-1.0.tar.gz
Algorithm Hash digest
SHA256 7cfc81dbce7d3bf054bc2e2750107ab46b66b00a08e077be5bc3a2f7924ce782
MD5 061f809a3d3d3cbf280d8b7ab301cd0d
BLAKE2b-256 6f5129196fbf3860c222836e1c338b5e0dfb9a14d639bb3d4928430e2712d851

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