We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
beside
1 parent e05eefc commit 6899b95Copy full SHA for 6899b95
README.md
@@ -89,7 +89,7 @@ circle(0.5).fill_color(papaya) | square(1).fill_color(blue)
89
which is equivalent to
90
91
```python
92
-circle(0.5).fill_color(papaya).beside(square(1).fill_color(blue))
+circle(0.5).fill_color(papaya).beside(square(1).fill_color(blue), unit_x)
93
```
94
95
This code produces the following image:
@@ -113,7 +113,7 @@ def sierpinski(n: int, size: int) -> Diagram:
113
return triangle(size)
114
else:
115
smaller = sierpinski(n - 1, size / 2)
116
- return smaller.above(smaller.beside(smaller).center_xy())
+ return smaller.above((smaller | smaller).center_xy())
117
118
d = sierpinski(5, 4).fill_color(papaya)
119
0 commit comments