Marching Squares to generate random contour.
pip install masq
A random graph can be generated by using masq.random()
.
import masq
masq.random(n_row=20, n_col=30, bound=0.5)
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)
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)
Turn on the show_point=True
.
import masq
masq.simplex_noise(20, 30, bound=0.5, wavelength=6, show_point=True)