Hello world!

Welcome to WordPress. This is your first post. Edit or delete it, then start writing!

1 thought on “Hello world!”

Leave a Comment

Your email address will not be published. Required fields are marked *

(function () { const canvas = document.getElementById("sa-code-canvas"); if (!canvas) return; const ctx = canvas.getContext("2d"); let HERO_TOP = 0; let HERO_BOTTOM = 0; function updateHeroBand() { const h = window.innerHeight; HERO_TOP = h * 0.17; // Top of “no code” zone HERO_BOTTOM = h * 0.55; // Bottom of “no code” zone } function resize() { const dpr = window.devicePixelRatio || 1; const rect = canvas.getBoundingClientRect(); canvas.width = rect.width * dpr; canvas.height = rect.height * dpr; ctx.setTransform(dpr, 0, 0, dpr, 0, 0); updateHeroBand(); } window.addEventListener("resize", resize); resize(); const rootStyle = getComputedStyle(document.documentElement); const COLORS = [ rootStyle.getPropertyValue("--sa-accent-1").trim(), rootStyle.getPropertyValue("--sa-accent-2").trim(), rootStyle.getPropertyValue("--sa-accent-3").trim(), rootStyle.getPropertyValue("--sa-accent-4").trim(), rootStyle.getPropertyValue("--sa-accent-5").trim() ]; const SNIPPETS = [ "let σ = quantumFlux();", "if (delta > Ω) return ψ++;", "fn optimize(body, mind, spirit) {", "const τ = self.map(evolve);", "while (state === 'asleep') dream++;", "matrix.sync('neurons', 'habits');", "signal.emit('supremacy:tick');", "core.merge(science, myth, art);", "for (gene of lineage) rewrite(gene);", "vector.normalize(intent);", "protocol.launch('upgrade');", "entropy.shift(-1);", "return insight >>> 1;" ]; const STREAK_COUNT = 45; const streaks = []; function rand(min, max) { return Math.random() * (max - min) + min; } function randYOutsideHero() { const h = window.innerHeight; const topHeight = HERO_TOP; const bottomHeight = h - HERO_BOTTOM; const total = topHeight + bottomHeight; if (total <= 0) return rand(0, h); const pickTop = Math.random() < topHeight / total; return pickTop ? rand(0, HERO_TOP) : rand(HERO_BOTTOM, h); } function makeStreak() { const direction = Math.random() < 0.5 ? 1 : -1; const speed = rand(20, 55) * direction; const y = randYOutsideHero(); const color = COLORS[Math.floor(Math.random() * COLORS.length)]; const length = Math.floor(rand(2, 5)); const snippets = []; for (let i = 0; i < length; i++) { snippets.push(SNIPPETS[Math.floor(Math.random() * SNIPPETS.length)]); } return { x: direction === 1 ? rand(-300, -80) : rand(window.innerWidth + 80, window.innerWidth + 300), y, speed, color, opacity: rand(0.6, 0.9), fontSize: rand(10, 15), snippets }; } for (let i = 0; i < STREAK_COUNT; i++) { streaks.push(makeStreak()); } let last = performance.now(); function loop(t) { const dt = (t - last) / 1000; last = t; ctx.clearRect(0, 0, canvas.width, canvas.height); streaks.forEach((s, idx) => { s.x += s.speed * dt; const totalText = s.snippets.join(" "); const approxWidth = totalText.length * (s.fontSize * 0.55); if (s.speed > 0 && s.x - approxWidth > window.innerWidth + 320) { streaks[idx] = makeStreak(); return; } if (s.speed < 0 && s.x + approxWidth < -320) { streaks[idx] = makeStreak(); return; } if (s.y > HERO_TOP && s.y < HERO_BOTTOM) { streaks[idx] = makeStreak(); return; } ctx.save(); ctx.font = s.fontSize + "px Menlo, Monaco, Consolas, 'Courier New', monospace"; ctx.globalAlpha = s.opacity; ctx.fillStyle = s.color; let x = s.x; const y = s.y; const spacing = s.fontSize * 1.1; for (let i = 0; i < s.snippets.length; i++) { if (Math.random() < 0.02) { s.snippets[i] = SNIPPETS[Math.floor(Math.random() * SNIPPETS.length)]; } const text = s.snippets[i]; ctx.fillText(text, x, y); x += ctx.measureText(text).width + spacing; } ctx.restore(); }); requestAnimationFrame(loop); } requestAnimationFrame(loop); })();
Scroll to Top