-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
74 lines (68 loc) · 1.9 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Gradient Resonance, by John Preston</title>
<script type="text/javascript" src="https://rawgit.com/patriciogonzalezvivo/glslCanvas/master/dist/GlslCanvas.js"></script>
<style>
* {
margin: 0;
padding: 0;
}
html {
overflow: hidden;
}
html, body {
width: 100%;
height: 100%;
}
canvas {
display: block;
}
.overlay {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
.point {
position: absolute;
font-size: 0.8rem;
font-family: sans-serif;
padding-left: 4px;
}
.point::before {
content: '';
position: absolute;
left: -2px;
width: 4px;
height: 4px;
border-radius: 2px;
margin-right: 2px;
background: #fff;
mix-blend-mode: difference;
}
</style>
</head>
<body>
<canvas class="glslCanvas" data-fragment-url="gradient resonance.frag" width="0" height="0"></canvas>
<script>
function resize (e) {
const canvas = document.querySelector('canvas');
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
}
resize();
window.addEventListener('resize', resize);
</script>
<div class="overlay">
<div class="point" style="left: 0%; top: 16.666%;">Red/Violet</div>
<div class="point" style="left: 0%; top: 11.333%;">Red/Violet -> Pinker</div>
<div class="point" style="left: 50%; top: 33.333%;">Cyan/Yellow</div>
<div class="point" style="left: 71.3%; top: 5.6%;">Brilliant Blue,<br>Purple Tint</div>
<div class="point" style="left: 83.333%; top: 72%;">Violet/Orange-Yellow</div>
</div>
</body>
</html>