-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
66 lines (66 loc) · 2.33 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="stylesheet" href="main.css" />
<title>Canvas Tutorial</title>
</head>
<body>
<div>
<div class="canvas-devide">
<div class="options-wrapper">
<div class="toggle-hidden" onclick="toggleMenu(this)" data-toggle="false">«</div>
<div class="wrapper-form">
<span>Shape</span>
<select id="shape">
<option value="circle">Circle</option>
<option value="square">Squre</option>
<option value="line">Line</option>
<option value="triangle">Triangle</option>
<option value="shinomiya">Shinomiya</option>
<option value="emerald">Emerald</option>
</select>
</div>
<div class="wrapper-form">
<span>Particles</span>
<input type="number" id="total-particle">
</div>
<div class="wrapper-form">
<span>Particles Size</span>
<input type="number" id="shape-size">
</div>
<div class="wrapper-form">
<div class="row-wrapper">
<span>Particles Speed</span>
<input type="checkbox" onclick="changeBounce()" id="isSpeed" checked>
</div>
<input type="number" id="particle-speed">
</div>
<div class="wrapper-form">
<span>Bounce X</span>
<input type="number" id="bounce-x" disabled>
</div>
<div class="wrapper-form">
<span>Bounce Y</span>
<input type="number" id="bounce-y" disabled>
</div>
<div class="wrapper-form">
<div class="row-wrapper">
<span>Scale on Hover</span>
<input type="checkbox" id="isScale" checked>
</div>
</div>
</div>
<canvas id="myCanvas"></canvas>
</div>
<div style="display:none;">
<img id="source-shinomiya" src="shinomiya.png">
<img id="source-emerald" src="emerald.png">
</div>
<!-- <div style="height: 500px;width:100%"></div> -->
</div>
<script src="./canvas.js"></script>
</body>
</html>