Marching Squares implementation by Python
Project description
Marching Squares
Marching Squares to generate random contour.
Install
pip install masq
Usage
Generate image
A random graph can be generated by using masq.random()
.
import masq
masq.random(n_row=20, n_col=30, bound=0.5)
A simplex noise image
Use masq.simplex_noise()
function. You can display all points by set show_point=True
.
import masq
masq.simplex_noise(n_row=20, n_col=30, bound=0.5, wavelength=6, show_point=False)
Play movement
Use masq.loop_simplex_noise()
or masq.loop_random()
function.
import masq
masq.loop_simplex_noise(20, 30, bound=0.5, wavelength=6, increment=0.01)
Display points
Turn on the show_point=True
.
import masq
masq.simplex_noise(20, 30, bound=0.5, wavelength=6, show_point=True)
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
masq-0.0.2.tar.gz
(5.9 kB
view details)
Built Distribution
masq-0.0.2-py3-none-any.whl
(6.7 kB
view details)
File details
Details for the file masq-0.0.2.tar.gz
.
File metadata
- Download URL: masq-0.0.2.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df745292e299621604d2f7e562405cde10e4041a07b011e6702b661c831ee67d |
|
MD5 | a43646f0cd40fce15a698b2d3adcff15 |
|
BLAKE2b-256 | ef508f5b38a38ec5bdc0c26246d608a6bdd823008def21f9c2f5642addd56958 |
File details
Details for the file masq-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: masq-0.0.2-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e77901cfa1c5abdebd6500ee44ba9518f1edf825adcd57aa08570df32e65e7a |
|
MD5 | 093b2492f69963e72201b8a7083f97ca |
|
BLAKE2b-256 | e32cb8e3078dc38ff64ba1a03d4cd81114bd95291fd53720d2f459c16ab49e6c |