-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
63 lines (60 loc) · 1.75 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!DOCTYPE html>
<html>
<head>
<title>Perlin Noise</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta charset="utf-8" />
<script type="text/javascript" src="perlinnoise.js" ></script>
<script type="text/javascript" src="main.js" ></script>
<link type="text/css" rel="stylesheet" href="style.css"/>
</head>
<body>
<div id="main">
<canvas id="canvas" width="256" height="256"></canvas>
</div>
<div id="view_controller">
<span>Perlin noise</span>
<!-- Yes i will use table, it works! -->
<table>
<tr>
<td>Texture width</td>
<td><input id="texture-width-input" type="number" value="256"></td>
</tr>
<tr>
<td>Texture height</td>
<td><input id="texture-height-input" type="number" value="256"></td>
</tr>
<tr>
<td>Persistence</td>
<td><input id="persistence-input" type="number" value="0.5" step="0.01"></td>
</tr>
<tr>
<td>Offset x</td>
<td><input id="offsetx-input" type="number" value="0" ></td>
</tr>
<tr>
<td>Offset y</td>
<td><input id="offsety-input" type="number" value="0" ></td>
</tr>
<tr>
<td>Scale x</td>
<td><input id="scalex-input" type="number" value="0.05" step="0.05"></td>
</tr>
<tr>
<td>Scale y</td>
<td><input id="scaley-input" type="number" value="0.05" step="0.05"></td>
</tr>
<tr>
<td>Octaves</td>
<td>
<input id="octave0-checkbox" type="checkbox" checked>0
<input id="octave1-checkbox" type="checkbox" checked>1
<input id="octave2-checkbox" type="checkbox" checked>2
<input id="octave3-checkbox" type="checkbox" checked>3
</td>
</tr>
</table>
<input type="button" id="update-button" value="Update" width="100%">
</div>
</body>
</html>