-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
54 lines (45 loc) · 1.2 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
<!doctype html>
<html>
<head>
<title>gridfader.js Demo</title>
<meta charset="utf-8" />
<style>
* {
border-width: 0;
margin: 0;
padding: 0;
}
html, body {
background-color: #333;
height: 100%;
}
#gridfader {
display: block;
height: 100%;
width: 100%;
}
</style>
</head>
<body>
<canvas id="gridfader"></canvas>
<script src="gridfader.js"></script>
<script>
(function() {
var fader = new GridFader('gridfader');
fader.palette.push(new fader.ColorManagement.Color({ r: 32, g: 48, b: 51 }));
fader.palette.push(new fader.ColorManagement.Color({ r: 95, g: 104, b: 84 }));
fader.palette.push(new fader.ColorManagement.Color({ r: 115, g: 142, b: 165 }));
fader.palette.push(new fader.ColorManagement.Color({ r: 202, g: 178, b: 161 }));
fader.palette.push(new fader.ColorManagement.Color({ r: 236, g: 238, b: 244 }));
fader.gridColor = new fader.ColorManagement.Color({ r: 0, g: 0, b: 0, a: .5 });
fader.cellSize = 48;
fader.maxCellOpacity = .5;
fader.gridSize = 5;
fader.fadeStep = .001;
fader.clockSpeed = 3;
fader.cycleSize = 7;
fader.BindEvents();
})();
</script>
</body>
</html>