cmap perlin noise python

Solutions on MaxInterview for cmap perlin noise python by the best coders in the world

showing results for - "cmap perlin noise python"
Pauline
02 May 2018
1import random
2from perlin_noise import PerlinNoise
3import matplotlib.pyplot as plt
4
5noise = PerlinNoise(octaves=10, seed=random.randrange(1,1000000000000000))
6xpix, ypix = 100, 100
7pic = [[noise([i/xpix, j/ypix]) for j in range(xpix)] for i in range(ypix)]
8
9plt.imshow(pic, cmap='gray')
10plt.show()