automatagen
Generate random terrain using cellular automata.
Compatibilities
- Python 3.x
- Any Operating System
Installation
automatagen is published on PyPi, so you only need to run the following command:
$ pip install automatagen
Usage
Note: TerrainGenerator.generate(width, height) returns a 2d array of boolean values. All visualisations are made using numpy and matplotlib.
Instantiating a new TerrainGenerator:
from automatagen import TerrainGenerator
terrgen = TerrainGenerator()
Generating a random 196x64 size map:
map = terrgen.generate(196, 64)
Instantiating a TerrainGenerator with different options:
terrgen = TerrainGenerator(initial_density = 0.25, steps = 10, loneliness_limit = 5)
Generating a random 196x64 map with the new options:
map = terrgen.generate(196, 64)
Generating a 196x64 map with a specific seed:
map = terrgen.generate(seed = 9001)
And generating another one with the same seed:
map = terrgen.generate(seed = 9001)
Metadata
Release files for automatagen 0.2.post4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| automatagen-0.2.post4.tar.gz | 2.3 kB | Without provenance | Details for automatagen-0.2.post4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| automatagen-0.2.post4-py3-none-any.whl | Python 3 | none | any | Details for automatagen-0.2.post4-py3-none-any.whl |
Total release size: 6.0 kB
Release files / automatagen-0.2.post4.tar.gz
| Download URL | automatagen-0.2.post4.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d6030904954cd91c8697c811ec37b789208985f78d29705a922279d48b89e79a
|
|
BLAKE2b-256 checksum How to use checksums |
3d40ac5726d835849c9f0f02dfe95e523eee2fa3f94412bd80be502cf55c5957
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6
|
Release files / automatagen-0.2.post4-py3-none-any.whl
| Download URL | automatagen-0.2.post4-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9486dacfc538e2101370c2e0719b8bc263ba15aa7d024dbc40adb327789eebca
|
|
BLAKE2b-256 checksum How to use checksums |
4c506de89b58718448b87fdf636311d1cb5a13aae7d0c7abcf104947e2cb498b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6
|
Security for automatagen 0.2.post4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.