NEON SPRAWL is one of 25 sites built by Formwork. The road runs forever — but it's only two pieces of terrain, leap-frogging past the camera on a seamless loop.
Every synthwave cover has the same three ingredients: a huge striped sun, a neon wireframe valley, and purple. So the sun is pure CSS, the terrain is real 3D, and everything glows.
Two identical terrain planes sit end-to-end. Every frame both slide toward the camera; the moment one passes behind the lens it jumps two tile-lengths back to lead again:
for (const p of [planeA, planeB]) {
p.position.z += SPEED * dt;
if (p.position.z > TILE) p.position.z -= 2 * TILE; // leap-frog
}
The seam is invisible because the height function tiles perfectly — it only uses sine waves whose period divides the tile length, so a plane's back edge always matches the next plane's front edge:
const k1 = 2*Math.PI/TILE * 3, k2 = 2*Math.PI/TILE * 5; // whole cycles per tile
const roll = Math.sin(z*k1)*0.8 + Math.sin(z*k2)*0.5; // → height(z) == height(z+TILE)
The valley stays flat (so the "road" reads) and mountains only rise past a certain |x|.
text-shadows (tight white, wide magenta, wider magenta) make letters look lit from within.git init -b main && git add -A && git commit -m "ship"
gh repo create formwork-neon --public --source=. --push
gh api --method POST /repos/OWNER/formwork-neon/pages \
-f 'source[branch]=main' -f 'source[path]=/'
Two planes, a handful of sine waves, and a CSS sun — an entire endless night drive.