rapid1337.com

Starfield

2026-06-15 · [ code ] · by staff

3D star tunnel — z decreases, project to 2D, respawn at the back.

<-- Plasma | [ Code ]

[ read in diskmag ]


A warp-speed starfield: give each star an (x, y, z), march z toward the viewer every frame, and project to screen with x / z. When a star passes the camera, recycle it to the far plane with fresh random coordinates.

Cheap, hypnotic, and it scales to thousands of stars before it ever breaks a sweat.

#canvas #demoscene


<-- Plasma | [ Code ] | ANSI Escape Codes, the Short Version -->