Skip to content
3D & Experimental

ParticleGalaxy

A tilted spiral galaxy of 56,000 single stars with dark dust lanes. Each star runs its own ellipse and the arms come from their crowding, so they never wind up. The mouse bends the light like a heavy unseen mass. WebGL, no three.js.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
countnumber56000Number of stars. Keep it under 120000 on phones.
armsstring"#a9c7ff"Six-digit hex colour of the young stars in the arms.
corestring"#ffd9a6"Six-digit hex colour of the old stars at the centre.
gasstring"#ff6f91"Six-digit hex colour of the small gas clouds.
backgroundstring"#04050b"Six-digit hex colour of the sky behind.
speednumber11 is the default pace; 2 is twice as fast.
labelstring"A spiral galaxy of stars..."Name read out by screen readers.
classNamestring"aspect-square w-80"Set the size here.