-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
38 lines (26 loc) · 942 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<html>
<head>
<link rel="stylesheet" href="https://pyscript.net/latest/pyscript.css" />
<script defer src="https://pyscript.net/latest/pyscript.js"></script>
</head>
<body>
<h1>Let's generate some island</h1>
<div id="plot"></div>
<py-config type="toml">
packages = ["numpy", "matplotlib", "Pillow", "faker"]
[[fetch]]
files = ["./main.py", "./perlinNoise.py", "./coloration_deco.py", "./detourage_principal.py", "./detourage_spe.py"]
</py-config>
<py-script>
import matplotlib.pyplot as plt
from main import generation_ile
# from hello import matrix
noise, noise_det = generation_ile(100)
fig, ax = plt.subplots(1,2)
ax[0].imshow(noise, cmap='gray')
ax[1].imshow(noise_det)
# ax = plt.imshow(noise, cmap = "gray")
display(fig.figure)
</py-script>
</body>
</html>