0x51582e2c…1802sent to0xa7d8d9ef…d270·#14,407,434·view on Etherscan
seed=tokenData.hash;
S = Uint32Array.from([0, 1, s = t = 2, 3].map(o => parseInt(seed.substr(8 * o + 2, 8), 16))), R = (o => (t = S[3], S[3] = S[2], S[2] = S[1], S[1] = s = S[0], t ^= t << 11, S[0] ^= t ^ t >>> 8 ^ s >>> 19, S[0] / 2 ** 32)), p5.prototype.square = function (o, t, e, r, l, n, a) { return p5._validateParameters("square", arguments), this._renderRect.apply(this, [o, t, e, e, r, l, n, a]) }; let SCALE, wHW, particles, prtSi, noMul, noMuls, drpMoA, drpMoB, pltts, allCO, sttCO, endCO, wSttCo, wENCo, wSttCo2, wENCo2, stllRd, bg, outCO, drpCFF, posNeg, sinCap, drpMOFs, modulo, layout, framed, xMOd, yMOd, xMULp, yMULp, sqSRK, bezTar, quaVe, HW = Math.min(window.innerWidth, window.innerHeight), nmPar = 500, nOFFs = .005, drpFF = Math.floor(10 * R() / 2 + 2), bOff = 1, bOffY = 1, bl_mo = 1, lpSy = !0, wSpeed = .01 * R(); function setup() { createCanvas(HW, HW), angleMode(RADIANS), frameRate(60), noiseSeed(99), pixelDensity(1), SCALE = HW / 400, wHW = 400, bezTar = [...Array(4)].map(() => R() * wHW), stpCOL(), mnLAY(), fFINi(), modulo = 100 * R() > 75 ? 1 : [2, 3, 4, 5, 6, 7, 8, 9, 10][int(8 * R())], 100 * R() > 50 ? blendMode(HARD_LIGHT) : blendMode(BLEND), drpFF = 6 == drpFF ? 4 : drpFF, (posNeg = [...Array(10)].map(() => 100 * R() > 50 ? -1 : 1)).forEach((o, t) => { posNeg[t] = posNeg[t] * (100 * R() > 50 ? 0 : 1) }), drpCFF = [...Array(10)], sinCap = min(wHW * R()), 100 * R() > 25 ? (drpMoA = -Math.floor(R() * wHW), drpMoB = Math.floor(R() * wHW)) : (drpMoA = wHW, drpMoB = wHW), strokeWeight(wHW / 400), quaVe = quadraticVertex, cuuV = curveVertex } function draw() { drpCFF.forEach((o, t) => { drpCFF[t] = sin(posNeg[t] * frameCount * .01) * sinCap }), background(bg), push(), scale(SCALE), layout.includes("sqGLy") && sqGLy(), layout.includes("waves") && drWVs(); let o = 0; if (layout.includes("droFiL")) for (x = 0; x <= wHW; x += wHW / drpFF)for (y = 0; y <= wHW; y += wHW / drpFF)pDRLT(x, y, drpMOFs[o % modulo]), o += 1; layout.includes("flFiLD") && drwFL(), layout.includes("droplet") && bDRP(wHW / 2, wHW / 2), drBRR(), pop() } function mnLAY() { layout = ["waves", "droFiL", "droplet", "flFiLD", "sqGLy"], stllRd && layout.indexOf("droplet") && layout.splice(layout.indexOf("droplet"), 1); let o = R() * layout.length - 2; for (i = 0; i < o; i++)layout.splice(Math.floor(R() * layout.length), 1); if (layout.length > 2 && layout.indexOf("droplet") && 100 * R() > 20 && layout.splice(layout.indexOf("droplet"), 1), layout.length > 2 && layout.indexOf("sqGLy") && 100 * R() > 25 && layout.splice(layout.indexOf("sqGLy"), 1), layout.includes("droFiL")) { let o = 0; for (x = 0; x <= wHW; x += wHW / drpFF)for (y = 0; y <= wHW; y += wHW / drpFF)o += 1; drpMOFs = [...Array(o)].map(() => [...Array(10)].map(() => 100 * R() > 50 ? -1 : 1)) } JSON.stringify(layout.sort()) == JSON.stringify(["flFiLD", "sqGLy"].sort()) && (stpCOL(), mnLAY()), JSON.stringify(layout.sort()) == JSON.stringify(["flFiLD", "waves"].sort()) && (bgc = [color(0), color(0, 0, 255)], (bg = bgc[Math.floor(R() * bgc.length)]).setAlpha(10)), framed = 100 * R() > 90, 100 * R() > 50 && (pDRLT = xDRLT) } function fFINi() { noMuls = [PI, QUARTER_PI, TAU, HALF_PI, TWO_PI, int(10 * R()), int(20 * R()), int(45 * R()), int(90 * R()), int(180 * R()), int(360 * R())], noMul = noMuls[Math.floor(R() * noMuls.length)], particles = [...Array(nmPar)].map(() => createVector(floor(R() * wHW), floor(R() * wHW))), prtSi = wHW / 200, 100 * R() > 50 && (prtSi *= 2), nmPar = 100 * R(), waves = [sin, cos, tan], xMOd = waves[Math.floor(R() * waves.length)], yMOd = waves[Math.floor(R() * waves.length)], xMULp = 100 * R() > 50 ? 1 : -1, yMULp = 100 * R() > 50 ? 1 : -1 } function stpCOL() { pltts = { stella: [color(206, 17, 45), color(163, 150, 101)], waPrim: [color(0, 44, 95), color(99, 177, 229), color(20, 88, 163), color(0, 176, 231)], waSec: [color(249, 7, 47), color(249, 157, 28), color(255, 223, 157), color(68, 155, 176), color(131, 199, 191), color(220, 233, 174), color(121, 90, 67), color(0, 128, 128)], eliya: [color("green"), color("yellow")] }, allCO = pltts.stella.concat(pltts.waPrim, pltts.waSec, pltts.eliya), 100 * R() > 50 && (allCO = pltts.waPrim.concat(color(60, 236, 255), color(60, 100, 255), color(60, 255, 171), color(73, 165, 162), color(0, 255, 247), color(78, 203, 255), color(0, 60, 162))), allCO.forEach(o => { o.setAlpha(100 * R()) }), sttCO = allCO[rndCLR()], endCO = allCO[rndCLR()], wSttCo = allCO[rndCLR()], wENCo = allCO[rndCLR()], wSttCo2 = allCO[rndCLR()], wENCo2 = allCO[rndCLR()], bgc = [color(0), color(255), color(0, 0, 255)], (bg = bgc[Math.floor(R() * bgc.length)]).setAlpha(10), outCO = allCO[rndCLR()], 100 * R() > 50 ? outCO.setAlpha(255 * R()) : outCO.setAlpha(20 * R() + 10), outCO.setAlpha(255 * R()), stroke(outCO), fnlCO = [outCO.levels.toString(), sttCO.levels.toString(), endCO.levels.toString(), wSttCo.levels.toString(), wENCo.levels.toString(), wSttCo2.levels.toString(), wENCo2.levels.toString()], unqFC = [...new Set(fnlCO)], fnlCO.length != unqFC.length && stpCOL(), sqSRK = wHW / 5 * R() } function rndCLR() { let o = Math.floor(R() * allCO.length); return 0 == allCO[0].levels[0] ? stllRd = !1 : 0 != o && 6 != o || (stllRd = !0), o } function drwFL() { for (p of particles) { push(); let o = lerpColor(color("white"), sttCO, cos(.01 * frameCount)); strokeWeight(prtSi), o.setAlpha(127.5 * sin(.01 * frameCount) + 25), stroke(o), point(p.x, p.y), updPAR(p), pop() } } function updPAR(o) { let t = noise(o.x * nOFFs, o.y * nOFFs, frameCount * nOFFs) * noMul; o.x += xMOd(t) * xMULp, o.y += yMOd(t) * yMULp, (o.x < -wHW / 8 || o.x > wHW + wHW / 8 || o.y < -wHW / 8 || o.y > wHW + wHW / 8) && (o.x = floor(R() * wHW), o.y = floor(R() * wHW)) } function drWVs() { for (push(), strokeCap(ROUND), strokeWeight(wHW / 4), i = 0; i <= wHW; i += wHW / 4)stroke(wSttCo, wENCo, sin(.01 * frameCount)), line(-wHW / 8 + i + frameCount % wHW / 4, 0, -wHW / 8 + i + frameCount % wHW / 4, wHW / 3 * sin(.01 * frameCount) + wHW / 2), stroke(wSttCo2, wENCo2, sin(.01 * frameCount)), line(-wHW / 8 + i + frameCount % wHW / 4, 0, -wHW / 8 + i + frameCount % wHW / 4, wHW / 3 * sin(.01 * frameCount) + wHW / 4); pop() } function pDRLT(o, t, e) { push(); let r = lerpColor(sttCO, endCO, sin(.01 * frameCount)); fill(r), translate(o, t), beginShape(), vertex((0 + drpCFF[0]) * e[0], (-wHW / 10 - sin(.005 * frameCount) * wHW / drpFF + cos(frameCount * wSpeed) * drpMoA + drpCFF[1]) * e[1]), quaVe((wHW / 10 * .75 + sin(frameCount * wSpeed) * wHW / drpFF + drpCFF[2]) * e[2], (0 + drpCFF[3]) * e[3], (0 + drpCFF[4]) * e[4], (wHW / 400 + drpCFF[5]) * e[5]), quaVe((-wHW / 10 * .75 - sin(frameCount * wSpeed) * wHW / drpFF + drpCFF[6]) * e[6], (0 + drpCFF[7]) * e[7], (0 + drpCFF[8]) * e[8], (-wHW / 10 - sin(frameCount * wSpeed) * wHW / drpFF + cos(frameCount * wSpeed) * drpMoB + drpCFF[9]) * e[9]), endShape(CLOSE), pop() } function xDRLT(o, t, e) { push(); let r = lerpColor(sttCO, endCO, sin(.01 * frameCount)); fill(r), translate(o, t), beginShape(), cuuV((0 + drpCFF[0]) * e[0], (-wHW / 10 - sin(.005 * frameCount) * wHW / drpFF + cos(frameCount * wSpeed) * drpMoA + drpCFF[1]) * e[1]), cuuV((wHW / 10 * .75 + sin(frameCount * wSpeed) * wHW / drpFF + drpCFF[2]) * e[2], (0 + drpCFF[3]) * e[3]), cuuV((0 + drpCFF[4]) * e[4], (wHW / 400 + drpCFF[5]) * e[5]), cuuV((-wHW / 10 * .75 - sin(frameCount * wSpeed) * wHW / drpFF + drpCFF[6]) * e[6], (0 + drpCFF[7]) * e[7]), cuuV((0 + drpCFF[8]) * e[8], (-wHW / 10 - sin(frameCount * wSpeed) * wHW / drpFF + cos(frameCount * wSpeed) * drpMoB + drpCFF[9]) * e[9]), endShape(CLOSE), pop() } function bDRP(o, t) { push(); let e = lerpColor(sttCO, endCO, sin(.01 * frameCount)); e.setAlpha(30), fill(e), strokeWeight(wHW / 100), translate(o, t), scale(.65), beginShape(), vertex(0, -wHW / 4 * 1.5), quaVe(wHW / 4 * 1.5 + cos(.02 * frameCount) * wHW / 5, wHW / 2 * .75, 0, .75 * (wHW / 400 + wHW / 2)), quaVe(-wHW / 4 * 1.5 - cos(.02 * frameCount) * wHW / 5, wHW / 2 * .75, 0, -wHW / 4 * 1.5), endShape(CLOSE), pop() } function sqGLy() { bOff = sin(.01 * frameCount) * wHW, bOffY = cos(.01 * frameCount) * wHW, push(), noFill(), c = color("white"), c.setAlpha(100), stroke(c), strokeWeight(sqSRK), bezier(-wHW / 10, bOffY, bezTar[0], bezTar[1], bezTar[2], bezTar[3], wHW + wHW / 10, bOffY), pop() } function mouseClicked() { loop() } function doubleClicked() { 1 == bl_mo ? (bl_mo = 0, blendMode(SOFT_LIGHT)) : (bl_mo = 1, blendMode(HARD_LIGHT)) } function keyTyped() { "s" === key && saveCanvas("o", "png"), "r" === key && location.reload(), 32 === keyCode && (1 == lpSy ? (noLoop(), lpSy = !1) : (loop(), lpSy = !0)) } function drBRR() { framed && (push(), strokeWeight(wHW / 12), noFill(), square(0, 0, wHW, wHW / 10), pop()) }