I Can See The Pixels: Designing Cross-Stitch Patterns in OCaml
summary
Builds a pixel-first pattern pipeline: a JSON canvas, a terminal editor using notty, a PDF exporter via OCaml PDF generator (which turns out accidentally quadratic), bitmap-font readers (Angstrom parsers) and automated border layout that repeats and transforms motif pieces. Implements OAuth2 upload via a Mirage OS unikernel and a LittleFS-derived filesystem plus a Caqti-backed database and VIF web UI. Deployments stop short but one PDF sells on Etsy for $0.25 (net $0.18).
AI-written summary · about
chapters (12)
- 0:00Introduction and fun types
- 1:55Cross-stitch basics and types
- 3:20First fun: JSPG canvas
- 5:05Automated text patterns
- 7:10Unicode and bitmap fonts
- 8:55Automated borders
- 10:01Etsy integration and Mirage OS
- 12:28Cross-stitching TCP header
- 13:33Public domain patterns
- 14:37Database and web app
- 15:59VIF and final demo
- 17:23Q&A
related talks
26mKnitting for Javascripters
30mOnce upon a punch card - how textiles can explain why we have the web
52mIn Defense of an Old Pixel
27mRecreating Retro Computer Art with JS!
24mArtisanal Rendering: Make Your Own Computer Art!
39mliterally everything is pixel art
31mThe Art of Functional Programming
37mCreative Coding for Fun and (Non)Profit
