harmonic¶
3 motifs. Import them from geomotif.motifs, or build one by name
with registry.create("harmonic").
harmonic¶
Sums of sines on each axis: Lissajous with more terms.
Parameters
| Name | Type | Default | Notes |
|---|---|---|---|
x_terms |
tuple[tuple[float, float, float], ...] |
((100.0, 1.0, 0.0), (40.0, 5.0, 0.0)) |
|
y_terms |
tuple[tuple[float, float, float], ...] |
((100.0, 1.0, 1.5707963267948966), (40.0, 5.0, 1.5707963267948966)) |
|
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. |
harmonograph¶
The Victorian drawing machine: swinging pendulums, slowly running down.
{
"geomotif": "1.3.1",
"motif": "harmonograph",
"params": {
"resolution": null,
"x_pendulums": [
{
"$type": "geomotif.motifs.polar.Pendulum",
"amplitude": 140.0,
"frequency": 2.0,
"phase": 0.0,
"damping": 0.006
},
{
"$type": "geomotif.motifs.polar.Pendulum",
"amplitude": 60.0,
"frequency": 3.0,
"phase": 0.7853981633974483,
"damping": 0.0018
}
],
"y_pendulums": [
{
"$type": "geomotif.motifs.polar.Pendulum",
"amplitude": 140.0,
"frequency": 2.005,
"phase": 1.5707963267948966,
"damping": 0.006
},
{
"$type": "geomotif.motifs.polar.Pendulum",
"amplitude": 60.0,
"frequency": 4.0,
"phase": 0.0,
"damping": 0.0018
}
],
"duration": 50.0,
"center": [
0.0,
0.0
]
}
}
Parameters
| Name | Type | Default | Notes |
|---|---|---|---|
x_pendulums |
tuple[Pendulum, ...] |
a tuple | |
y_pendulums |
tuple[Pendulum, ...] |
a tuple | |
duration |
float |
50.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. |
lissajous¶
Two perpendicular oscillations, plotted against each other.
Parameters
| Name | Type | Default | Notes |
|---|---|---|---|
a |
int |
3 |
|
b |
int |
2 |
|
delta |
float |
1.5707963267948966 |
|
width |
float |
200.0 |
|
height |
float |
200.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. |