-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathindex.html
119 lines (104 loc) · 3.45 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Starscapes</title>
<style>
body {
padding: 0;
margin: 0;
font-family: Verdana, sans-serif;
}
.left {
float: left;
padding-right: 20px;
}
</style>
<div id='container'></div>
<div class="left">
<h4>Colors</h4>
<table >
<tbody>
<tr>
<td>Sky color 1</td>
<td><input type="color" id="skyColor1"/></td>
</tr>
<tr>
<td>Sky color 2</td>
<td><input type="color" id="skyColor2"/></td>
</tr>
<tr>
<td>Sky accent 1</td>
<td><input type="color" id="skyAccentColor1"/></td>
</tr>
<tr>
<td>Sky accent 2</td>
<td><input type="color" id="skyAccentColor2"/></td>
</tr>
<tr>
<td>Star color 1</td>
<td><input type="color" id="starColor1"/></td>
</tr>
<tr>
<td>Star color 2</td>
<td><input type="color" id="starColor2"/></td>
</tr>
<tr>
<td>Mountain color 1</td>
<td><input type="color" id="mountainColor1"/></td>
</tr>
<tr>
<td>Mountain color 2</td>
<td><input type="color" id="mountainColor2"/></td>
</tr>
<tr>
<td>Cloud color</td>
<td><input type="color" id="cloudColor1"/></td>
</tr>
</tbody>
</table>
</div>
<div class="left">
<h4>Seed</h4>
<input type="number" name="mode" value="0" id="seedText">
<button onclick="generate()">Generate</button>
<button onclick="generateRandom()">Generate random</button>
</div>
<div class="left">
<h4>Mode</h4>
<input type="radio" name="mode" value="lines" id="modeSelectLines">
<label >Lines</label><br>
<input type="radio" name="mode" value="circles" checked >
<label >Circles</label><br>
</div>
<div class="left">
<h4>Resolution</h4>
<input type="number" name="width" value="600" min = "1" id="resolutionX">
<label for="width">Width</label><br>
<input type="number" name="height" value="900" min = "1" id="resolutionY">
<label for="height">Height</label><br>
</div>
<div class="left">
<h4>Details</h4>
<input type="number" name="mountain-detail" value="5" style="width: 40px" min = "1" id="mountainDetail">
<label for="mountain-detail">Mountain</label><br>
<input type="number" name="particle-detail" value="15" style="width: 40px" min = "1" id="particleDetail">
<label for="particle-detail">Particles</label><br>
<div>
The lower you go the more detailed it gets, with 1 being max details. Recommended to not go much lower on these unless you have a powerful machine. Page might tell you that a script is slowing it down, but if you wait it will complete eventually.
</div>
</div>
<script src="p5.min.js"></script>
<script src="index.js"></script>
<script src="sketch.js"></script>
<script src="fields.js"></script>
<script src="FieldDrawer.js"></script>
<script src="PaintParticle.js"></script>
<script src="StarParticle.js"></script>
</head>
<body>
<main>
</main>
</body>
</html>