knot¶
5 motifs. Import them from geomotif.motifs, or build one by name
with registry.create("knot.celtic-grid").
knot.celtic-grid¶
The plait: strands at 45 degrees, bouncing off the frame and off barriers.
Parameters
| Name | Type | Default |
|---|---|---|
cols |
int |
4 |
rows |
int |
3 |
size |
float |
60.0 |
breaks |
tuple[tuple[int, int, str], ...] |
() |
roundness |
float |
0.55 |
gap |
float |
0.14 |
center |
Point |
(0.0, 0.0) |
knot.circular¶
One strand wound several times round a ring, weaving with itself.
Parameters
| Name | Type | Default |
|---|---|---|
radius |
float |
110.0 |
amplitude |
float |
34.0 |
lobes |
int |
5 |
wraps |
int |
2 |
resolution |
int |
48 |
gap |
float |
0.06 |
center |
Point |
(0.0, 0.0) |
knot.endless¶
The endless knot: four strands each way, woven, with their ends looped back.
Parameters
| Name | Type | Default |
|---|---|---|
size |
float |
220.0 |
roundness |
float |
0.4 |
gap |
float |
0.02 |
center |
Point |
(0.0, 0.0) |
knot.square¶
The same winding, but round a square frame instead of a ring.
Parameters
| Name | Type | Default |
|---|---|---|
size |
float |
220.0 |
amplitude |
float |
24.0 |
lobes |
int |
8 |
wraps |
int |
3 |
squareness |
float |
6.0 |
resolution |
int |
48 |
gap |
float |
0.035 |
center |
Point |
(0.0, 0.0) |
knot.triquetra¶
The trinity knot: three arcs that turn out to be one strand.
Parameters
| Name | Type | Default |
|---|---|---|
radius |
float |
90.0 |
gap |
float |
0.07 |
rotation |
float |
-1.5707963267948966 |
ring |
bool |
False |
center |
Point |
(0.0, 0.0) |