-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
43 lines (35 loc) · 1.65 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>S P L I C E - Style Template | thanks to Fernando Jerez</title>
<link rel="stylesheet" href="main.css" type="text/css" media="screen" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/p5.min.js"></script>
</head>
<body>
<script>
// you can copy / paste these from a Splice color array
// try https://getsplice.io/#/create, paste an opensea link,
// wait for the colors being extracted and find the copy icon
// see https://getsplice.io/#/nft/0x1cb1a5e65610aeff2551a50f76a87a7d3fb649c6/6636/
const Colors = [
{ rgb: [93, 133, 133], hex: "#5d8585", freq: 0.6312888888888889 },
{ rgb: [0, 0, 0], hex: "#000000", freq: 0.11167777777777778 },
{ rgb: [214, 198, 147], hex: "#d6c693", freq: 0.0749 },
{ rgb: [155, 107, 14], hex: "#9b6b0e", freq: 0.06617777777777778 },
{ rgb: [82, 66, 15], hex: "#52420f", freq: 0.04145555555555556 },
{ rgb: [200, 221, 82], hex: "#c8dd52", freq: 0.030044444444444443 },
{ rgb: [18, 194, 250], hex: "#12c2fa", freq: 0.027955555555555556 },
{ rgb: [36, 41, 30], hex: "#24291e", freq: 0.011711111111111111 },
{ rgb: [63, 89, 89], hex: "#3f5959", freq: 0.003011111111111111 },
{ rgb: [246, 242, 229], hex: "#f6f2e5", freq: 0.0017777777777777779 },
];
// this value is derived from the original NFT
// and also can be found at https://getsplice.io/#/create
const Randomness = 804666739;
</script>
<script src="splice.js"></script>
<script src="./lib/run.js"></script>
</body>
</html>