spiral¶
11 motifs. Import them from geomotif.motifs, or build one by name
with registry.create("spiral.archimedean").
spiral.archimedean¶
The arithmetic spiral r = a + b*theta.
Parameters
| Name | Type | Default | Notes |
|---|---|---|---|
a |
float |
0.0 |
|
b |
float |
10.0 |
|
theta_span |
float |
18.84955592153876 |
|
center |
Point |
(0.0, 0.0) |
|
theta_start |
float |
0.0 |
|
resolution |
int | None |
None |
Segments per strand -- a strand gets one more point than that, so both ends are included. None (default) scales density with the winding. |
spiral.between¶
The endpoint-constrained arithmetic spiral: r = a + b*theta.
Parameters
| Name | Type | Default |
|---|---|---|
start |
Point |
required |
end |
Point |
required |
center |
Point |
(0.0, 0.0) |
clockwise |
bool |
True |
turns |
int |
0 |
resolution |
int | None |
None |
spiral.euler¶
The clothoid: curvature increasing linearly with distance traveled.
Parameters
| Name | Type | Default | Notes |
|---|---|---|---|
scale |
float |
200.0 |
|
extent |
float |
2.5 |
|
center |
Point |
(0.0, 0.0) |
|
resolution |
int | None |
None |
Segments per strand -- a strand gets one more point than that, so both ends are included. None (default) scales density with the winding. |
spiral.fermat¶
The parabolic spiral r = a * sqrt(theta), both branches.
Parameters
| Name | Type | Default | Notes |
|---|---|---|---|
a |
float |
30.0 |
|
both_branches |
bool |
True |
|
theta_span |
float |
18.84955592153876 |
|
center |
Point |
(0.0, 0.0) |
|
theta_start |
float |
0.0 |
|
resolution |
int | None |
None |
Segments per strand -- a strand gets one more point than that, so both ends are included. None (default) scales density with the winding. |
spiral.fibonacci¶
Quarter circles inscribed in a chain of Fibonacci squares.
Parameters
| Name | Type | Default |
|---|---|---|
quarters |
int |
9 |
size |
float |
10.0 |
spiral.golden¶
The logarithmic spiral that widens by the golden ratio each quarter turn.
Parameters
| Name | Type | Default | Notes |
|---|---|---|---|
a |
float |
2.0 |
|
theta_span |
float |
12.566370614359172 |
|
center |
Point |
(0.0, 0.0) |
|
theta_start |
float |
0.0 |
|
resolution |
int | None |
None |
Segments per strand -- a strand gets one more point than that, so both ends are included. None (default) scales density with the winding. |
spiral.hyperbolic¶
The reciprocal spiral r = a / theta.
Parameters
| Name | Type | Default | Notes |
|---|---|---|---|
a |
float |
200.0 |
|
theta_start |
float |
0.5235987755982988 |
|
theta_span |
float |
18.84955592153876 |
|
center |
Point |
(0.0, 0.0) |
|
resolution |
int | None |
None |
Segments per strand -- a strand gets one more point than that, so both ends are included. None (default) scales density with the winding. |
spiral.involute¶
The path of a string unwinding, taut, from a circle.
Parameters
| Name | Type | Default | Notes |
|---|---|---|---|
radius |
float |
10.0 |
|
turns |
float |
3.0 |
|
center |
Point |
(0.0, 0.0) |
|
resolution |
int | None |
None |
Segments per strand -- a strand gets one more point than that, so both ends are included. None (default) scales density with the winding. |
spiral.lituus¶
The spiral r = a / sqrt(theta), named for the Roman augur's staff.
Parameters
| Name | Type | Default | Notes |
|---|---|---|---|
a |
float |
200.0 |
|
theta_start |
float |
0.5235987755982988 |
|
theta_span |
float |
18.84955592153876 |
|
center |
Point |
(0.0, 0.0) |
|
resolution |
int | None |
None |
Segments per strand -- a strand gets one more point than that, so both ends are included. None (default) scales density with the winding. |
spiral.logarithmic¶
The equiangular spiral r = a * exp(b*theta).
Parameters
| Name | Type | Default | Notes |
|---|---|---|---|
a |
float |
5.0 |
|
b |
float |
0.15 |
|
theta_span |
float |
18.84955592153876 |
|
center |
Point |
(0.0, 0.0) |
|
theta_start |
float |
0.0 |
|
resolution |
int | None |
None |
Segments per strand -- a strand gets one more point than that, so both ends are included. None (default) scales density with the winding. |
spiral.theodorus¶
The square-root spiral: a chain of right triangles, drawn exactly.
Parameters
| Name | Type | Default |
|---|---|---|
triangles |
int |
16 |
size |
float |
20.0 |
center |
Point |
(0.0, 0.0) |