Build a live wallpaper that follows real meteor shower dates

A Redditor had Codex write a WebGL lighthouse wallpaper with the 2026 meteor shower calendar and local sunset logic, ramping meteors up toward the Leonid peak; the generated art cost about $0.58.

Done withCodex· Nov 4, 2026

What they did

Tired of the same looping wallpaper video, the poster (u/Ilovcyclynn on r/codex) built a lighthouse scene that changes with the calendar. They generated one still background with Seedream and a six second clip with Seedance through an Atlas Cloud API key. Codex wrote the rest: the JavaScript and WebGL animation, a table of the 2026 meteor showers, sunset and twilight times for New York, and a scheduler that raises meteor density around the November 17 Leonid peak. Each meteor gets its own position, speed and lifetime. The demo has sliders for date and time so the poster can preview how the scene changes.

How it went

The wallpaper runs as described in the posted video. One thing looked wrong at first: reflections on the water did not match the meteors overhead. They were changed to track each meteor's path and fade, with a slight ripple. Outside a shower window or in daylight the animation and video stop and the still scene stays. The poster puts the image and video cost at roughly $0.58 at listed rates and gives no figure for the Codex time.

Worth knowing

Commenters asked how hard it loads the GPU and whether the sunset maths survives the daylight saving switch in early November; the thread shows no answer to either. The calendar and location are hard coded for 2026 and New York, so anyone reusing the idea needs to swap those in.

Try it

With Codex· 5 parts to fill in

Build a browser-based animated wallpaper of [scene] in plain JavaScript and WebGL. Add a data file of the [year] meteor showers with their active windows and peak dates, and compute sunset and twilight for [my city] using its time zone, including daylight saving changes. Spawn meteors with their own position, speed and lifetime, and scale how many appear by how close the date is to a shower peak. Make reflections in [water or other surface] follow the meteors above them. Outside a shower window or in daylight, stop the animation loop and show only [the still background image]. Add a hidden debug control to scrub date and time. Stop when it runs in a browser and show me how to preview a peak night and a daytime frame.

Square brackets are the parts to fill in. The prompt is ours; the story is theirs.

Where they said it

Related