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 hashes)

Uploaded Source

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