How clainstone/cbirds works
cbirds is a standalone terminal flock animation. The main workflow is to accept command-line options (and optionally piped text), simulate a flock, then render frames as terminal cells or Kitty graphics. Documented branches include text and clock signs, PNG pictures, 3D flight, and sharing a sky across terminals. The source index identifies the principal modules, but most runtime calls are unsampled; uncertain connections are therefore omitted or shown as unverified.
Main entry points: boids.c Application loop · letters.c Flying letters · png.c PNG image library · sign.c Sign and clock
Components 17
Runtime and flight
- Application loop
boids.c - Option parsing
options.c - 3D flock
sky3d.c - Spatial index
spatial_grid.c
Text and imagery
- Flying letters
letters.c - Sign and clock
sign.c - Bitmap font
font.c - Terminal text parser
vt.c - PNG pictures
picture.c - PNG image library
png.c
Terminal rendering
- Cell renderer
cells.c - Kitty graphics
kitty_graphics.c - Embedded sprite
sprite_png.h
Sharing and output
- Shared sky
link.c - GIF recording
gif.c
Other components
- Terminal user
- Piped text
Connections 19
- Terminal user → Application loop: runs
README.md - Piped text → Application loop: provides text
README.md - Application loop → Option parsing: reads options
boids.c - Application loop → 3D flock: uses for 3D
- Application loop → Spatial index: uses index
- Application loop → Flying letters: supports text flight
- Application loop → Sign and clock: supports signs
- Application loop → PNG pictures: supports pictures
- Application loop → Cell renderer: renders cells
- Application loop → Kitty graphics: renders sprites
- Application loop → Shared sky: shares sky
- Application loop → GIF recording: records animation
- Flying letters → Terminal text parser: uses layout
- Flying letters → Bitmap font: uses glyphs
- Sign and clock → Bitmap font: uses glyphs
sign.c - PNG pictures → PNG image library: decodes images
picture.c - Cell renderer → PNG image library: reads canvas
cells.c - Kitty graphics → Embedded sprite: uses embedded image
- Application loop → PNG image library: uses image library