-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathindex.html
48 lines (43 loc) · 1.51 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>文字粒子</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<canvas id="canvas"></canvas>
<div id="control">
<div>
<h1>文字粒子</h1>
<p style="margin: 0 0 20px 10px;">
<span id="ball">圆形</span>
<span id="rect">方块</span>
</p>
<p>文字</p>
<input type="text" id="message" value="hahaha" onchange="change()">
<p>重力</p>
<input type="range" id="gra" value="0" min="-1" max="1" step="0.1" onchange="changeV()">
<p>周期</p>
<input type="range" id="dur" value="0.4" min="0.1" max="0.99" step="0.01" onchange="changeV()">
<p>速度</p>
<input type="range" id="speed" value="0.1" min="0" max="5" ste="0.01" onchange="changeV()">
<p>半径</p>
<input type="range" id="rad" value="2" min="1.8" max="20" step="0.1" onchange="changeV()">
<p>分辨率</p>
<input type="range" id="res" value="10" min="3" max="20" step="1" onchange="change()">
</div>
<div id="btn">
<span></span>
<span></span>
<span></span>
</div>
</div>
<p id="tips">*** 点击菜单按钮,滑出侧边栏,进行参数控制 ***</p>
<script src="js/sidebar.js"></script>
<script src="js/utils.js"></script>
<script src="js/particles.js"></script>
<script src="js/shape.js"></script>
<script src="js/index.js"></script>
</body>
</html>