Repository navigation
loomwork v0.1.0
loomwork v0.1.0 — a seeded generator for seamless woven-cloth PNGs.
What it does
- Same seed and flags give the same image (pixels; file bytes can differ between Pillow versions).
- Tiles seamlessly: opposite edges match.
- Built-in palettes or your own with
--palette;--previewwrites a tiled preview. --sheet Nrenders N consecutive seeds into one labelled contact sheet (N up to 64).
Checks that ship with it
tools/selfcheck.sh: about 7 seconds on the machine used for the test; regenerates the gallery, compares pixels, runs a reduced tiling check. Exit 0 pass, 1 fail, 2 cannot run.tools/check_tiling.py: the full tiling check, 600 combinations (a couple of minutes).- CI runs
selfcheck.shon Python 3.12 with Pillow 10.4.0, 11.3.0 and the latest release (13.0.0 at the time of release), and confirms it fails on a deliberately broken fixture.
Install: needs Python 3 and Pillow (python3 -m pip install Pillow); no other dependencies. See the README for commands.
Known limits
- Only the Pillow versions above were tested; older ones are untested.
- The label font on
--sheetcomes from Pillow's default and may differ between versions. - Gallery images are compared by pixels, not file bytes.