-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathindex.html
81 lines (79 loc) · 2.71 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
<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>Boids</title>
<meta name="viewport" content="width=device-width">
<link href='http://fonts.googleapis.com/css?family=Roboto+Slab:100|Open+Sans:300' rel='stylesheet' type='text/css'>
<style type="text/css">
html, body {
margin:0;
padding:0;
font-family:'Open Sans', Helvetica, Arial, sans-serif;
color:#543D5E;
color:rgba(84,61,94,0.75);
background-color:#FFF1EB;
}
#title {
color:#543D5E;
font-size:2.5em;
color:rgba(84,61,94,0.9);
font-family: 'Roboto Slab', 'Times New Roman', Times, serif;
margin:0; padding:0;
}
a {
color:rgba(84,61,94,0.9);
text-decoration:none;
border-bottom:1px dotted #543D5E;
}
#text {
position:absolute;
max-width:300px;
top:16px;
left:16px;
background-color:rgba(255,241,235,0.55);
box-shadow:0 0 15px 5px rgba(255,241,235,0.55);
}
.source {
margin-bottom:0.5em;
}
@media screen and (max-width: 640px) {
body {
font-size: 12px;
}
}
</style>
</head>
<body>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-61328150-1', 'auto');
ga('send', 'pageview');
</script>
<article role="main" id="text">
<h1 id="title">boids</h1>
<div id="description">
<p>
This is a lightweight 2D JavaScript implementation of Craig Reynolds'
<a href="http://en.wikipedia.org/wiki/Boids">Boids</a> algorithm.
It's a classic example of <em>emergence</em>
and a suprisingly simple way of mimicking
not only flocks, but any form of swarm or herd or crowd.
</p>
<p>
Right now you're watching <strong data-count>many</strong> boids being
simulated at <strong data-fps>60</strong> fps.
</p>
<p class="source">
<a href="http://github.com/anoopelias/boids">Source on GitHub</a>
</p>
<p class="source">
Fork of <a href="http://hughsk.io/boids/">hughsk/boids</a>
</p>
</div>
</article>
</body>
</html>