roulette¶
6 motifs. Import them from geomotif.motifs, or build one by name
with registry.create("epicycles").
epicycles¶
Rotating arms stacked tip to tail; the path of the last tip.
Parameters
| Name | Type | Default | Notes |
|---|---|---|---|
arms |
tuple[tuple[float, float, float], ...] |
((120.0, 1.0, 0.0), (30.0, 7.0, 0.0), (12.0, 13.0, 0.0)) |
|
turns |
float |
1.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. |
roulette.epicycloid¶
A point on the rim of a wheel rolling outside a ring: a ring of petals.
Parameters
| Name | Type | Default | Notes |
|---|---|---|---|
outer |
int |
100 |
|
inner |
int |
30 |
|
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. |
roulette.epitrochoid¶
A pen fixed to a wheel rolling around the outside of a ring.
Parameters
| Name | Type | Default | Notes |
|---|---|---|---|
outer |
int |
100 |
|
inner |
int |
30 |
|
offset |
float |
45.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. |
roulette.hypocycloid¶
A point on the rim of a wheel rolling inside a ring: a cusped star.
Parameters
| Name | Type | Default | Notes |
|---|---|---|---|
outer |
int |
100 |
|
inner |
int |
30 |
|
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. |
roulette.hypotrochoid¶
A pen fixed to a wheel rolling around the inside of a ring.
Parameters
| Name | Type | Default | Notes |
|---|---|---|---|
outer |
int |
100 |
|
inner |
int |
30 |
|
offset |
float |
45.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. |
spirograph¶
The toy, in the toy's own terms: a ring, a wheel and a hole.
Parameters
| Name | Type | Default | Notes |
|---|---|---|---|
ring_teeth |
int |
96 |
|
wheel_teeth |
int |
36 |
|
hole |
float |
0.7 |
|
ring_radius |
float |
150.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. |