-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
107 lines (91 loc) · 3.57 KB
/
index.html
File metadata and controls
107 lines (91 loc) · 3.57 KB
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
<!DOCTYPE html>
<html>
<head>
<script src="https://google.github.io/traceur-compiler/bin/traceur.js"></script>
<link href="styles.css" rel="stylesheet" type="text/css">
<link href="lib/range-slider.min.css" rel="stylesheet" type="text/css">
<script src="lib/system.min.js"></script>
<script src="lib/iro.min.js"></script>
<script src="lib/range-slider.min.js"></script>
</head>
<body>
<h1>Snowflake generator V0.3</h1>
<div id="snowflake_container"></div>
<span>
<button class="button" id="randomize">Randomize</button>
<button class="button" id="animate">Refresh</button>
<button class="button" id="cancel">Cancel</button>
<button class="button" id="new_snowflake">New Snowflake</button>
</span>
<span class="param_container">
<span class="param_block">
<span class="param_value">
<span class="label">Background freeze level</span>
<input type="text" id="bg_freeze_level">
</span>
<input type="range" id="bg_freeze_level_range">
</span>
<span class="param_block">
<span class="param_value">
<span class="label">Freeze speed</span>
<input type="text" id="fg_freeze_speeed"><br>
</span>
<input type="range" id="fg_freeze_speeed_range">
</span>
<span class="param_block">
<span class="param_value">
<span class="label">Diffusion speed</span>
<input type="text" id="diffusion_speed"><br>
</span>
<input type="range" id="diffusion_speed_range">
</span>
<span class="param_block">
<span class="param_value">
<span class="label">Diffusion asymmetry</span>
<input type="text" id="diffusion_asymmetry"><br>
</span>
<input type="range" id="diffusion_asymmetry_range">
</span>
<span class="param_block">
<span class="param_value">
<span class="label">Random background noise</span>
<input type="text" id="rnd_bg_noise"><br>
</span>
<input type="range" id="rnd_bg_noise_range">
</span>
<span class="param_block">
<span class="param_value">
<span class="label">Random seed</span>
<input type="text" id="rnd_seed"><br>
</span>
<input type="range" id="rnd_seed_range">
</span>
</span>
<span class="param_container">
<span class="param_block">
<span class="param_value">
<span class="label">Foreground color</span>
<span class="color_item" id="fgColor"></span>
</span>
</span>
<span class="param_block">
<span class="param_value">
<span class="label">Background color</span>
<span class="color_item" id="bgColor"></span>
</span>
</span>
<span class="param_block">
<span class="param_value">
<span class="label">Params</span>
<textarea id="snowflake_params" rows="6" cols="24"></textarea>
</span>
<button class="button" id="import_snowflake_params">Import</button>
</span>
</span>
<script>
System.import('main.js');
</script>
</body>
<footer>ES6 Snowflake generator - Copyright 2020 by Andreas Maschke. Source code available at <a href="https://github.com/thargor6/snowflake" target="_blank">GitHub</a>.<br> Implements the algorithm described in the paper <a href="http://patarnott.com/pdf/SnowCrystalGrowth.pdf" target="_blank">"A local cellular model for snow crystal growth"</a> by Clifford A. Reiter.
</footer>
</html>