-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
51 lines (39 loc) · 1.25 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
<!DOCTYPE HTML>
<html lang="pl">
<head>
<meta charset="utf-8"/>
<title>Plexus effect</title>
<!--<link rel="stylesheet" href="css/bootstrap/bootstrap.min.css" media="screen">-->
<link href="http://fonts.googleapis.com/css?family=Lato:300,400,700,900,300italic,400italic,700italic,900italic&subset=latin,latin-ext"
rel="stylesheet">
<link rel="stylesheet" href="css/style.css" media="screen">
<script src="js/math.js"></script>
<script src="js/plexus.js"></script>
</head>
<body>
<div class="controls" id="plexus-control">
<form>
<label>
line distance
<input type="range" data-plexus="lineDistance" value="100" step="10" max="400" min="0">
</label>
<label>
speed
<input type="range" data-plexus="pointsSpeed" value="0.5" step="0.2" max="5" min="0">
</label>
</form>
</div>
<div class="fullscreen">
<canvas id="plexus-test" class="plexus"></canvas>
</div>
<script>
var plexus = new Plexus("plexus-test", {
pointsSpeed: 0.5,
pointsRadius: 1.1,
pointsStartDistance: 60
});
var controls = new Controls("plexus-control", plexus);
var cursor = new Cursor(plexus, {pointsSpeed: 0.5});
</script>
</body>
</html>