Skip to content

Commit 6899b95

Browse files
committed
FIX Update with latest beside API (#135)
1 parent e05eefc commit 6899b95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ circle(0.5).fill_color(papaya) | square(1).fill_color(blue)
8989
which is equivalent to
9090

9191
```python
92-
circle(0.5).fill_color(papaya).beside(square(1).fill_color(blue))
92+
circle(0.5).fill_color(papaya).beside(square(1).fill_color(blue), unit_x)
9393
```
9494

9595
This code produces the following image:
@@ -113,7 +113,7 @@ def sierpinski(n: int, size: int) -> Diagram:
113113
return triangle(size)
114114
else:
115115
smaller = sierpinski(n - 1, size / 2)
116-
return smaller.above(smaller.beside(smaller).center_xy())
116+
return smaller.above((smaller | smaller).center_xy())
117117

118118
d = sierpinski(5, 4).fill_color(papaya)
119119
```

0 commit comments

Comments
 (0)