mandala¶
5 motifs. Import them from geomotif.motifs, or build one by name
with registry.create("kaleidoscope").
kaleidoscope¶
One motif, repeated under a cyclic or dihedral symmetry group.
from geomotif import save_svg
from geomotif.core import registry
# This motif's example takes values that are themselves objects, so it
# reads better through the registry than as a constructor call.
motif = registry.create("kaleidoscope", **registry.describe("kaleidoscope").example)
save_svg(motif.build(), "kaleidoscope.svg", width=320, height=320)
Parameters
| Name | Type | Default |
|---|---|---|
unit |
SupportsBuild |
required |
group |
str |
'D6' |
center |
Point |
(0.0, 0.0) |
layered-rings¶
Concentric circles: the other half of a mandala's scaffolding.
Parameters
| Name | Type | Default |
|---|---|---|
count |
int |
7 |
inner |
float |
24.0 |
step |
float |
20.0 |
growth |
float |
1.0 |
center |
Point |
(0.0, 0.0) |
mandala¶
Concentric rings of repeated motifs.
from geomotif import save_svg
from geomotif.core import registry
# This motif's example takes values that are themselves objects, so it
# reads better through the registry than as a constructor call.
motif = registry.create("mandala", **registry.describe("mandala").example)
save_svg(motif.build(), "mandala.svg", width=320, height=320)
{
"geomotif": "1.3.1",
"motif": "mandala",
"params": {
"rings": [
{
"$type": "geomotif.compose.mandala.Ring",
"unit": {
"motif": "rose",
"params": {
"resolution": null,
"n": 6,
"d": 1,
"size": 76.0,
"center": [
0.0,
0.0
]
}
},
"count": 1,
"radius": 0.0,
"phase": 0.0,
"spin": 0.0,
"face": true,
"mirror": false
},
{
"$type": "geomotif.compose.mandala.Ring",
"unit": {
"motif": "ellipse",
"params": {
"resolution": null,
"rx": 27.0,
"ry": 11.0,
"center": [
0.0,
0.0
],
"rotation": 0.0
}
},
"count": 12,
"radius": 74.0,
"phase": 0.0,
"spin": 0.0,
"face": true,
"mirror": false
},
{
"$type": "geomotif.compose.mandala.Ring",
"unit": {
"motif": "polygon.regular",
"params": {
"sides": 3,
"radius": 17.0,
"center": [
0.0,
0.0
],
"rotation": 1.5707963267948966
}
},
"count": 24,
"radius": 128.0,
"phase": 0.0,
"spin": 0.0,
"face": true,
"mirror": false
}
],
"center": [
0.0,
0.0
]
}
}
Parameters
| Name | Type | Default |
|---|---|---|
rings |
tuple[Ring, ...] |
required |
center |
Point |
(0.0, 0.0) |
snowflake¶
Six identical arms, each mirrored in its own axis.
Parameters
| Name | Type | Default |
|---|---|---|
unit |
SupportsBuild | None |
None |
size |
float |
150.0 |
branches |
int |
4 |
depth |
int |
2 |
seed |
int |
0 |
center |
Point |
(0.0, 0.0) |
spoke-pattern¶
Radial lines from an inner circle to an outer one.
Parameters
| Name | Type | Default |
|---|---|---|
count |
int |
24 |
inner |
float |
40.0 |
outer |
float |
140.0 |
stagger |
float |
0.0 |
rotation |
float |
0.0 |
center |
Point |
(0.0, 0.0) |