-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
67 lines (64 loc) · 1.76 KB
/
index.html
File metadata and controls
67 lines (64 loc) · 1.76 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Life Simulation</title>
<link rel="stylesheet" href="./styles.css" />
<script src="./app.js" defer></script>
</head>
<body>
<div id="buttons" class="buttons">
<p class="anim-border">Cell Simulation</p>
<details>
This program implements the force of attraction i.e. F = G * (m1 * m2) / r^2. We have 4 particles represented by
red, green, cyan and orange colors.
Each particle has certain force of attraction/repulsion towards another one. Like red attracts yellow, yellow
repulses cyan, cyan attract yellow and likewise. This set of attraction gives rise to random patterns as can be
seen here.
</details>
<div class="anim-border">
<span>Speed</span>
<input type="number" value="40" id="sim-speed" class="anim-border" />
</div>
<button class="btn anim-border selected">
<span> </span>
<span> </span>
<span> </span>
<span> </span>
Fly
</button>
<button class="btn anim-border">
<span> </span>
<span> </span>
<span> </span>
<span> </span>
Pulse
</button>
<button class="btn anim-border">
<span> </span>
<span> </span>
<span> </span>
<span> </span>
Find
</button>
<button class="btn anim-border">
<span> </span>
<span> </span>
<span> </span>
<span> </span>
Wobble
</button>
<button class="btn anim-border">
<span> </span>
<span> </span>
<span> </span>
<span> </span>
Stop
</button>
</div>
<canvas id="life">
</canvas>
</body>
</html>