Skip to main content

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

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

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

Display points

Turn on the show_point=True.

import masq

masq.simplex_noise(20, 30, bound=0.5, wavelength=6, show_point=True)
drawing

Release files for masq 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for masq 0.0.2
File Size Uploaded
masq-0.0.2.tar.gz 5.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for masq 0.0.2
File Interpreter ABI Platform
masq-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 12.7 kB

Release files / masq-0.0.2.tar.gz

Download URL masq-0.0.2.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
df745292e299621604d2f7e562405cde10e4041a07b011e6702b661c831ee67d
BLAKE2b-256 checksum
How to use checksums
ef508f5b38a38ec5bdc0c26246d608a6bdd823008def21f9c2f5642addd56958
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.13

Release files / masq-0.0.2-py3-none-any.whl

Download URL masq-0.0.2-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5e77901cfa1c5abdebd6500ee44ba9518f1edf825adcd57aa08570df32e65e7a
BLAKE2b-256 checksum
How to use checksums
e32cb8e3078dc38ff64ba1a03d4cd81114bd95291fd53720d2f459c16ab49e6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.13

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page