This is an experiment in using the codex workflow. Most of you don't care and just want to play with the svelte app pentomanim hosted on vercel.
I did not do any publicity except a post on discord.
The goal is to generate and maintain a svelte interactive pentamino solver app with click or touch interface, meaning working in desktops, smartphone and tablets. I ended up designing the interface on manim. And I am now experimenting on generating a manim video about DFS using pentomino solving as an example. Nothing much to see now except that.
Personal contains some trivia about my personal history with pentominoes.
This repository contains two pentomino apps:
manim/: Python + Manim animation scripts.webgl/: interactive Svelte + TypeScript + WebGL pentomino solver UI.Location: /Users/cog/mine/pentomanim/manim
pentomino_6x10.pypentomino_6x10_five.pytriplication_dfs_tree.pyrect_6x10_dfs_tree.py6x10 rectangle.pentomino_6x10_five.py builds five unique solved rectangles and lays them out.From repo root:
manim -pqh manim/pentomino_6x10_five.py PentominoFiveRectangles
Optional quality presets:
manim -pql manim/pentomino_6x10_five.py PentominoFiveRectangles # low
manim -pqh manim/pentomino_6x10_five.py PentominoFiveRectangles # high
Output videos are written under:
/Users/cog/mine/pentomanim/manim/media/videos/....md and .mp4 in sync with .pyEach Manim scene script X.py has eponymous artifacts X.md and X.mp4.
Use the sync script to update stale or missing artifacts (including new files):
python3 /Users/cog/mine/pentomanim/manim/sync_eponymous.py
Useful options:
python3 /Users/cog/mine/pentomanim/manim/sync_eponymous.py --dry-run
python3 /Users/cog/mine/pentomanim/manim/sync_eponymous.py --skip-render
python3 /Users/cog/mine/pentomanim/manim/sync_eponymous.py --file triplication_dfs_tree.py
Detailed behavior spec:
/Users/cog/mine/pentomanim/manim/EPONYMOUS_SYNC_SPEC.mdLocation: /Users/cog/mine/pentomanim/webgl
Rectangle SolverTriplication Solver20x3, 15x4, 12x5, 10x6.5.cd /Users/cog/mine/pentomanim/webgl
bun install
bun run dev
bun run build
bun run preview
Vite.webgl.bun run build.dist./Users/cog/mine/pentomanim/webgl/src/lib/pentomino.ts/Users/cog/mine/pentomanim/webgl/src/lib/solver.ts/Users/cog/mine/pentomanim/webgl/src/lib/triplication.ts