-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex-3.html
More file actions
executable file
·31 lines (30 loc) · 922 Bytes
/
Copy pathindex-3.html
File metadata and controls
executable file
·31 lines (30 loc) · 922 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
28
29
30
<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: #35ab86;
--gradient-color-2: #00182c;
--gradient-color-3: #0fa2ab;
--gradient-color-4: #034a63;
}
</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>