<html>
<head>
<meta charset="utf-8">
<style>
body {
margin: 0;
}
</style>
</head>
<body>
<div id="scene"></div>
<script>
function randomizeFromHash(r) {
var e = 0;
for (let o = 0; o < r.length; o++) e += r.charCodeAt(o);
function l() {
var r = 1e4 * Math.sin(e++);
return r - Math.floor(r)
}
let s = [],
a = Math.floor(4 * l()) + 3;
for (let u = 0; u < a; u++) {
let n = "#";
for (let t = 0; t < 6; t++) n += Math.floor(16 * l()).toString(16);
s.push(n)
}
let d = Math.floor(55 * l()) + 6,
f = Math.floor(106 * l()) + 15,
m = Math.floor(8 * l()) + 1;
return {
userPixels: s,
userColumns: d,
userSpeed: f,
userStroke: m
}
}
let url = window.location.href,
regex = /[0-9a-f]{64}i0/g,
ordHash = url.match(regex)[0],
randomValues = randomizeFromHash(ordHash),
userPixels = randomValues.userPixels,
userColumns = randomValues.userColumns,
userStroke = randomValues.userStroke,
userSpeed = randomValues.userSpeed,
grid = [];
</script>
<script>
function loadScript(c, d) {
var t = document.createElement("script");
t.src = c, t.onload = function() {
d && d()
}, document.body.appendChild(t)
}
loadScript("/content/7cd095ef441dbf2e694e7bacdc096d2c14b029a28c62a1636c19c23a1678d766i0", function() {});
</script>
No replies yet