-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex-2.html
More file actions
executable file
·40 lines (38 loc) · 1.2 KB
/
Copy pathindex-2.html
File metadata and controls
executable file
·40 lines (38 loc) · 1.2 KB
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
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Stripe Gradient 3</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: #B7EAFF;
--gradient-color-2: #E7AEFE;
--gradient-color-3: #FEE9A2;
--gradient-color-4: #fff;
/* --gradient-color-1: #B7EAFF;
--gradient-color-2: #fff;
--gradient-color-3: #fff;
--gradient-color-4: #A2FDDD; */
/* --gradient-color-1: #B7EAFF;
--gradient-color-2: #E7AEFE;
--gradient-color-3: #FFAFDB;
--gradient-color-4: #A2FDDD; */
}
</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>