Back to browse
Ticking Away, a Dark Side of the Moon Watchface Written in Zig

Ticking Away, a Dark Side of the Moon Watchface Written in Zig

by clebert·Mar 29, 2026·3 points·0 comments

AI Analysis

●●SolidEye CandyWizardryNiche Gem

Zig-powered prism clock targeting WASM, e-ink, and bare-metal from one codebase.

Strengths
  • Single Zig codebase compiles to browser, Raspberry Pi, Pico 2, and Pebble.
  • Iterated through physical dispersion equations to nail the rainbow rendering.
  • Human-curated AI workflow—Claude iterates, author owns architecture decisions.
Weaknesses
  • Beautiful novelty with limited practical use beyond a wall clock or demo.
  • E-ink dithering options are niche—most users will just view in browser.
Category
Target Audience

Zig developers, e-ink display hobbyists, Pink Floyd fans

Similar To

Pebble watchfaces · Inky e-ink displays · Trmnl

Post Description

I built a watchface inspired by Pink Floyd's "Dark Side of the Moon". A prism that refracts light into a rainbow to show the time. The minute hand is a light ray, the rainbow points at the hour.

It's written in Zig, which lets me target the browser (WASM), a Raspberry Pi Zero 2 W driving a 13.3" e-ink display as a wall clock, a Pico 2 for bare-metal battery operation, and eventually the Pebble Round 2 smartwatch.

I built it with Claude Code (Opus) as an experiment in AI-assisted coding while keeping real ownership of the code. Claude does the fast iteration, I make the architecture decisions and refactor by hand. Every line in lib/ is reviewed and curated. Hybrid workflow, not autopilot.

The rendering went through a few iterations. Started with physical dispersion using Cauchy's equation, but tuning the coefficients for all 720 time combinations was a nightmare and some just looked bad. Then I tried bouncing light inside the prism, which was better but had ugly corner cases. In the end I dropped the physics and went with a simple traced path that always looks good. 360 commits of learning what to throw away.

Similar Projects

Developer Tools●●●Banger

Interactive 3D Moon with real NASA data and WebGPU

Oren-Nayar BRDF solves opposition surge correctly where standard PBR fails completely.

WizardryEye CandyNiche Gem
oddurs
303mo ago