Content Updates with projects and experience

This commit is contained in:
Greg Kilmer
2026-07-04 18:03:38 -04:00
parent 1e8f5f1f01
commit 35d561525f
29 changed files with 347 additions and 148 deletions
+4 -4
View File
@@ -134,12 +134,12 @@ export default function AnimatedBackground({
const cy = 0;
const maxR = Math.sqrt(cx * cx + height * height) + 40;
// Dense starfield: ~3x the previous density for a richly star-packed sky.
// One star per ~1100 px^2 of the disk, capped for perf (~15% anchors).
// Ultra-dense starfield: ~5x the previous density for a richly packed sky.
// One star per ~220 px^2 of the disk, capped for perf (~17% anchors).
const diskArea = Math.PI * maxR * maxR;
const count = Math.min(1500, Math.floor(diskArea / 1100));
const count = Math.min(3000, Math.floor(diskArea / 220));
stars = Array.from({ length: count }, (_, i) => {
const anchor = i % 7 === 0; // ~15% anchors -> dense constellation backbone
const anchor = i % 6 === 0; // ~17% anchors -> very dense constellation backbone
// Uniform-ish distribution across the disk via sqrt on radius.
const rr = maxR * Math.sqrt(Math.random());
const a = Math.random() * Math.PI * 2;