Skip to content

loomwork v0.5.0

Choose a tag to compare

@donkamonka17-spec donkamonka17-spec released this 05 Dec 15:04

loomwork v0.5.0 adds --periodic: a tile with no doubled line at the joins.

  • The default cloth is mirrored, so the first and last lines are equal and tiling repeats one line at each join (and, at even sizes, down the middle of the tile). That is unchanged and still documented as a known limit. With --periodic the mirror lines fall on line 0 and the middle line instead, so the last line equals line 1 and no line is repeated at a join. At odd sizes the middle of the tile still has one doubled line. Neighbouring lines can still be equal by chance. The tile is still mirror-symmetric inside.
  • The same seed gives a different cloth with --periodic than without it. Output without the flag is byte-identical to v0.4.0 (compared on PNG, SVG, preview, sheet and the gallery and samples).
  • python3 -I tools/check_tiling.py --periodic checks the reflection and the middle line; the 600-combination run passed on the release commit, and mutants that break only the middle line make it fail. CI runs it on the latest Pillow. --periodic works with --weave, --palette-from, --sheet, --preview and SVG output.
  • The README, tutorial, field note and essay pages mention it.

Known limits: the tiling check for the periodic variant runs in CI on one Pillow version (latest); nobody outside has used the option.