I need to generate a set of images using simplex noise. Below you can find the code I developed and an output image.
How can make the code to generate different images every time I run it? At the moment I get the same image every time I run the code. And how can I tune the size of the features in the image? I would like to get something less salt-and-peppery.
import matplotlib.pyplot as plt
import numpy as np
import opensimplex
from opensimplex import OpenSimplex
simplex = OpenSimplex()
A = np.zeros([pix, pix])
for y in range(0, pix):
for x in range(0, pix):
value = simplex.noise2d(x,y)
color = int((value + 1) * 128)
A[x, y] = color
plt.imshow(A)
plt.show()
Output image: