Skip to content

tacaswell/knots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Feb 3, 2025
6eb1271 · Feb 3, 2025

History

59 Commits
Jan 6, 2025
Jan 18, 2025
Feb 3, 2025
Feb 3, 2025
Dec 29, 2024
Dec 28, 2024
Dec 29, 2024
Dec 29, 2024
Jan 7, 2025
Feb 3, 2025
Feb 2, 2025

Repository files navigation

Knots

Based on Celtic Art: The Methods of Construction 1, which covers how to create Celtic-style knot work this code automates the initial steps for basic knots.

Method

Very briefly, the method is to:

  1. construct a single line that is the path of the knot
  2. expand to a ribbon around the center line
  3. remove the center line
  4. interleave the crossings
  5. elaboration and decoration

Using this code you will be able to generate up to stage 3 that can be printed and traced.

To make this concrete, the initial step is to generate the path of the knot, shown here including the control points used for path and indicating the unit cell that was mirrored to make the complete knot.

Stage 1 construction with control points

Dropping the construction marks and showing the center line gives

Stage 2 construction center line

and removing the center line gives

Stage 3 construction ready to be traced

At this stage, this is ready to be printed to begin the manual process of interleaving the crossings. Pick any crossing and decide which direction will be "over". You then move either direction along the ribbon alternating over/under until you return to the starting point.

Quick start

pixi run scratch

and then edit scripts/scratch.py to your liking.

Contributions

This project is typed and has ruff formatting and linting applied.

There are no tests other than looking at the demo section of the docs.

The docs can be rebuilt via:

pixi run build_docs

Contributions are welcome, particularly additional knots in demos.py.

Footnotes

  1. Bain, George. Celtic Art: The Methods of Construction. Contsable, 1996. ISBN 978-0-09-476900-7

About

Generate templates for drawing celtic knots.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages