-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·27 lines (27 loc) · 866 Bytes
/
index.html
File metadata and controls
executable file
·27 lines (27 loc) · 866 Bytes
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
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Stripe Gradient 2</title>
<script src="Gradient.js" ></script>
<script src="controls.js"></script>
<link rel="stylesheet" href="controls.css">
</head>
<style>
body {
margin:0;
padding:0;
}
#gradient-canvas {
--gradient-color-1:#ef008f;--gradient-color-2:#6ec3f4;--gradient-color-3:#7038ff;--gradient-color-4:#e2e2e2;
}
</style>
<body>
<canvas id="gradient-canvas" style="width:100vw;height:100vh"></canvas>
<script>
window.gradient = new Gradient()
window.gradient.initGradient('#gradient-canvas');
mountGradientControls(window.gradient);
</script>
</body>
</html>