string-art¶
3 motifs. Import them from geomotif.motifs, or build one by name
with registry.create("string-art.corner").
string-art.corner¶
Two arms, laced so the far end of one meets the near end of the other.
Parameters
| Name | Type | Default |
|---|---|---|
count |
int |
20 |
corner |
Point |
(0.0, 0.0) |
arm_a |
Point |
(200.0, 0.0) |
arm_b |
Point |
(0.0, 200.0) |
merge |
bool |
False |
show_nodes |
bool |
False |
string-art.envelope¶
The general engine: nail i on one curve, to nail rule(i) on another.
Parameters
| Name | Type | Default |
|---|---|---|
count |
int |
144 |
rule |
Callable[[int], int] |
a function |
curve |
Callable[[float], Point] |
a function |
partner |
Callable[[float], Point] | None |
a function |
merge |
bool |
False |
show_nodes |
bool |
False |
string-art.polygon¶
A strung corner at every corner of a regular polygon.
Parameters
| Name | Type | Default |
|---|---|---|
sides |
int |
5 |
count |
int |
16 |
radius |
float |
130.0 |
rotation |
float |
1.5707963267948966 |
center |
Point |
(0.0, 0.0) |
merge |
bool |
False |
show_nodes |
bool |
False |