Skip to content

loomwork v0.1.0

Choose a tag to compare

@donkamonka17-spec donkamonka17-spec released this 05 Dec 11:42

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; --preview writes a tiled preview.
  • --sheet N renders 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.sh on 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 --sheet comes from Pillow's default and may differ between versions.
  • Gallery images are compared by pixels, not file bytes.