Horje
cmap perlin noise python Code Example
cmap perlin noise python
import random
from perlin_noise import PerlinNoise
import matplotlib.pyplot as plt

noise = PerlinNoise(octaves=10, seed=random.randrange(1,1000000000000000))
xpix, ypix = 100, 100
pic = [[noise([i/xpix, j/ypix]) for j in range(xpix)] for i in range(ypix)]

plt.imshow(pic, cmap='gray')
plt.show()




Python

Related
plt add y gridlines Code Example plt add y gridlines Code Example
how to use python to download files from the interent Code Example how to use python to download files from the interent Code Example
create contract from interface in brownie Code Example create contract from interface in brownie Code Example
python ssh connection Code Example python ssh connection Code Example
split path in list of directories Code Example split path in list of directories Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8