Transaction 6f1877ecd9f2f081a36db8ee00c3413cd03b5b7250998933f92034363aaa45dd
1 Input
-
3ec27fe0845a1d1ae2077cf4a5e73f8cc71b710f598a530ef3446a3f4b923bc1:25
OP_DATA_32(32) 117f692257b2331233b5705ce9c682be8719ff1b2b64cbca290bd6faeb54423eOP_CHECKSIG(172)OP_DATA_6(6) ДÂRŠOP_DROP(117)OP_0(0)OP_IF(99)OP_DATA_3(3) ordOP_DATA_1(1)OP_DATA_23(23) text/html;charset=utf-8OP_0(0)OP_PUSHDATA2(77) <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Neuron-like Interactive Art</title> <style> body { margin: 0; overflow: hidden; background-color: #0F4C81; font-family: 'Arial', sans-serif; } canvas { position: absolute; } #colorButtons { position: absolute; bottom: 10px; width: 100%; text-align: center; } .colorButton { padding: 10px 20px; margin: 0 10px; border: 2px solid whiOP_PUSHDATA2(77) te; background: none; color: white; font-size: 18px; cursor: pointer; transition: 0.3s; } .colorButton:hover { background: white; color: black; } </style> </head> <body> <canvas id="canvas"></canvas> <div id="colorButtons"> <button class="colorButton" onclick="shuffleColors()">Groovy Pink Mix</button> <button class="colorButton" onclick="shuffleColors()">Funky Yellow Mix</button> </div> <script> const canvas = document.getElementById('canvas'); const ctx = canvas.getContext('2d'); cOP_PUSHDATA2(77) anvas.width = window.innerWidth; canvas.height = window.innerHeight; const colors = ["#B163A3", "#0F4C81", "#FFC857", "#6B4226", "#D32F2F", "#1976D2", "#388E3C", "#FBC02D", "#8E24AA", "#F57C00", "#0288D1", "#7B1FA2", "#C2185B", "#7B1FA2", "#0097A7", "#C2185B", "#689F38", "#FBC02D", "#1976D2", "#512DA8"]; let mouseX, mouseY; window.addEventListener('mousemove', function(event) { mouseX = event.x; mouseY = event.y; }); function shuffleColors() {OP_PUSHDATA2(77) for (const circle of circlesArray) { circle.color = colors[Math.floor(Math.random() * colors.length)]; // Assign a random color from the array } } class Circle { constructor(x, y, radius, dx, dy) { this.x = x; this.y = y; this.radius = radius; this.dx = dx; this.dy = dy; this.color = colors[Math.floor(Math.random() * colors.length)]; // Assign a random color from the array } draw() {OP_PUSHDATA2(77) ctx.beginPath(); ctx.arc(this.x, this.y, this.radius, 0, Math.PI * 2, false); ctx.strokeStyle = this.color; ctx.stroke(); ctx.fillStyle = this.color; ctx.fill(); } update() { if (this.x + this.radius > canvas.width || this.x - this.radius < 0) { this.dx = -this.dx; } if (this.y + this.radius > canvas.height || this.y - this.radius < 0) { this.dy = -this.dy;OP_PUSHDATA2(77) } this.x += this.dx; this.y += this.dy; // Interaction with the mouse if (mouseX - this.x < 50 && mouseX - this.x > -50 && mouseY - this.y < 50 && mouseY - this.y > -50) { if (this.radius < 60) { this.radius += 2; } } else if (this.radius > 15) { this.radius -= 2; } this.draw(); } } function connectDots(dots) { for (let i = 0; i < doOP_PUSHDATA2(77) ts.length; i++) { for (let j = 0; j < dots.length; j++) { const dx = dots[i].x - dots[j].x; const dy = dots[i].y - dots[j].y; const distance = Math.sqrt(dx * dx + dy * dy); if (distance < 150) { ctx.beginPath(); ctx.strokeStyle = colors[Math.floor(Math.random() * colors.length)]; ctx.lineWidth = 0.2; ctx.moveTo(dots[i].x, dots[i].y); ctx.linOP_PUSHDATA2(77) eTo(dots[j].x, dots[j].y); ctx.stroke(); } } } } const circlesArray = []; for (let i = 0; i < 250; i++) { const x = Math.random() * canvas.width; const y = Math.random() * canvas.height; const radius = Math.random() * 30 + 10; const dx = (Math.random() - 0.5) * 4; const dy = (Math.random() - 0.5) * 4; circlesArray.push(new Circle(x, y, radius, dx, dy)); } function animate() { requestOP_PUSHDATA1(76) AnimationFrame(animate); ctx.clearRect(0, 0, canvas.width, canvas.height); for (const circle of circlesArray) { circle.update(); } connectDots(circlesArray); } animate(); </script> </body> </html>OP_ENDIF(104)
1 Outputs
- 6f1877ecd9f2f081a36db8ee00c3413cd03b5b7250998933f92034363aaa45dd:0
value 546
address bc1pe5g487t0w6zyxg28qe03va6twdj6wrzdjs6fayr6jd5gpzaaepuqapt4qn