memoscan
← all memos

Memo 0x918d48a2…3386a1 on Ethereum

let t = 0, bond = 0; const width = 60, height = 15; function drawWave(amp, freq) { let wave = Array(height) .fill() .map(() => Array(width).fill(" ")); for (let x = 0; x < width; x++) { let y = Math.floor(height / 2 + amp * Math.sin((freq * x * Math.PI) / 30)); if (y >= 0 && y < height) wave[y][x] = "*"; } console.clear(); wave.forEach((row) => console.log(row.join(""))); } function evolve() { t += 0.1; bond += Math.sin(t) * 0.1; let amp = Math.abs(bond) * (height / 4) + 1; let freq = (Math.sin(t / 10) + 2) * 3; // Increased multiplier for more cycles drawWave(amp, freq); } setInterval(evolve, 100);