curve¶
18 motifs. Import them from geomotif.motifs, or build one by name
with registry.create("astroid").
astroid¶
The four-cusped star x**(2/3) + y**(2/3) == 1.
Parameters
| Name | Type | Default | Notes |
|---|---|---|---|
size |
float |
100.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. |
bow¶
The bow, x**4 == x**2*y - y**3: two loops pinched at the origin.
Parameters
| Name | Type | Default | Notes |
|---|---|---|---|
size |
float |
100.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. |
butterfly¶
Temple Fay's butterfly: twelve revolutions that draw two wings.
Parameters
| Name | Type | Default | Notes |
|---|---|---|---|
size |
float |
100.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. |
cardioid¶
The heart-shaped r = 1 + cos(theta): one circle rolled around another.
Parameters
| Name | Type | Default | Notes |
|---|---|---|---|
size |
float |
100.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. |
cassini-oval¶
Points whose distances to two foci multiply to a constant.
Parameters
| Name | Type | Default | Notes |
|---|---|---|---|
a |
float |
70.0 |
|
b |
float |
80.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. |
cochleoid¶
The snail shell r = sin(theta) / theta, coiling in on itself.
Parameters
| Name | Type | Default | Notes |
|---|---|---|---|
size |
float |
100.0 |
|
loops |
int |
4 |
|
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. |
cornoid¶
The cornoid, x = cos(t)cos(2t), y = sin(t)(2 + cos(2t)).
Parameters
| Name | Type | Default | Notes |
|---|---|---|---|
size |
float |
100.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. |
cycloid¶
The path of a point on a rolling wheel's rim.
Parameters
| Name | Type | Default | Notes |
|---|---|---|---|
radius |
float |
40.0 |
|
arches |
int |
3 |
|
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. |
deltoid¶
The three-cusped tricuspoid, Euler's curve of 1745.
Parameters
| Name | Type | Default | Notes |
|---|---|---|---|
size |
float |
100.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. |
fish¶
A fish, tail and all, from x = cos(t) - sin(t)**2 / sqrt(2).
Parameters
| Name | Type | Default | Notes |
|---|---|---|---|
size |
float |
100.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. |
folium¶
The leaf curve r = cos(theta) * (4*a*sin(theta)**2 - b).
Parameters
| Name | Type | Default | Notes |
|---|---|---|---|
a |
float |
100.0 |
|
b |
float |
100.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. |
heart¶
A heart, in either of the two shapes that go by the name.
Parameters
| Name | Type | Default | Notes |
|---|---|---|---|
size |
float |
100.0 |
|
form |
HeartForm |
'classic' |
|
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. |
lemniscate¶
Bernoulli's lemniscate: the infinity symbol.
Parameters
| Name | Type | Default | Notes |
|---|---|---|---|
size |
float |
100.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. |
lemniscate.gerono¶
Gerono's lemniscate: the other figure eight, x**4 = x**2 - y**2.
Parameters
| Name | Type | Default | Notes |
|---|---|---|---|
size |
float |
100.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. |
limacon¶
Pascal's snail, r = b + a*cos(theta), inner loop and all.
Parameters
| Name | Type | Default | Notes |
|---|---|---|---|
a |
float |
100.0 |
|
b |
float |
60.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. |
nephroid¶
The kidney: the two-cusped epicycloid, r = 3cos(t) - cos(3t).
Parameters
| Name | Type | Default | Notes |
|---|---|---|---|
size |
float |
100.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. |
trochoid¶
The path of a point fixed to a rolling wheel, on the rim or off it.
Parameters
| Name | Type | Default | Notes |
|---|---|---|---|
radius |
float |
40.0 |
|
arm |
float |
60.0 |
|
arches |
int |
3 |
|
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. |
witch-of-agnesi¶
The witch of Agnesi: a bell curve with an exact algebraic definition.
Parameters
| Name | Type | Default | Notes |
|---|---|---|---|
radius |
float |
50.0 |
|
extent |
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. |