-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathindex.html
68 lines (62 loc) · 2.48 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
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>Photo Particles</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="menu">
<div id="menu-inner">
<h1>Photo Particles</h1>
<p>This is photo particles. I wondered what would happen
if I broke an image down into particles, and had three centres: red, green and blue.
Each particle would be attracted to or repulsed by the centres depending on how much
of each component colour they contain.</p>
<p>I recommend square images, like <a href="images/spectrum.png" target="_blank">this one</a>. And this uses
<a href="https://github.com/mrdoob/three.js/" title="Three.js" target="_blank">three.js</a>,
so a massive thanks to <a href="http://mrdoob.com/" title="Mr. doob" target="_blank"> Mr. doob</a>.</p>
<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
<div id="gui">
<div class="gui-set clearfix">
<h2>Magnetism:</h2>
<a href="#" id="mode-attract">Attract</a>
<a href="#" id="mode-repel">Repel</a>
</div>
<div class="gui-set clearfix">
<h2>Magnet Strength:</h2>
<a href="#" id="strength-1">1</a>
<a href="#" id="strength-2">2</a>
<a href="#" id="strength-3">3</a>
<a href="#" id="strength-4">4</a>
<a href="#" id="strength-5">5</a>
</div>
<div class="gui-set clearfix">
<h2>Fix particles to origin:</h2>
<a href="#" id="hold-particles-on">On</a>
<a href="#" id="hold-particles-off">Off</a>
</div>
<div class="gui-set clearfix">
<h2>Camera Orbit:</h2>
<a href="#" id="camera-orbit-on">On</a>
<a href="#" id="camera-orbit-off">Off</a>
</div>
<div class="gui-set clearfix">
<h2>Density:</h2>
<a href="#" id="density-low">Low</a>
<a href="#" id="density-medium">Medium</a>
<a href="#" id="density-high">High</a>
</div>
</div>
</div>
</div>
<div id="container">
<a href="http://aerotwist.com" title="Back to Aerotwist"><span>←</span>Back to Aerotwist</a>
</div>
</body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script src="js/Modernizr.js"></script>
<script src="js/RequestAnimationFrame.js"></script>
<script src="js/Three.js"></script>
<script src="js/PhotoParticles.js"></script>
</html>