polar¶
4 motifs. Import them from geomotif.motifs, or build one by name
with registry.create("points.phyllotaxis").
points.phyllotaxis¶
The sunflower head: r = c*sqrt(n) at n golden angles.
Parameters
| Name | Type | Default |
|---|---|---|
count |
int |
500 |
spacing |
float |
8.0 |
angle |
float |
2.399963229728653 |
center |
Point |
(0.0, 0.0) |
polar.expression¶
Any radius function you like, wrapped as a motif.
Parameters
| Name | Type | Default | Notes |
|---|---|---|---|
formula |
Callable[[float], float] |
a function | |
center |
Point |
(0.0, 0.0) |
|
theta_start |
float |
0.0 |
|
theta_span |
float |
6.283185307179586 |
|
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. |
rose¶
The rhodonea r = cos(n/d * theta), with the petal count right.
Parameters
| Name | Type | Default | Notes |
|---|---|---|---|
n |
int |
5 |
|
d |
int |
1 |
|
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. |
rose.maurer¶
A rose walked in whole-degree steps and joined by straight chords.
Parameters
| Name | Type | Default |
|---|---|---|
n |
int |
6 |
degrees |
int |
71 |
size |
float |
100.0 |
center |
Point |
(0.0, 0.0) |