Skip to content

Commit 0e71090

Browse files
committed
make animate example bigger
1 parent df722c0 commit 0e71090

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

examples/animate.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,24 @@
44
55
Usage:
66
python3 examples/animate.py > examples/animate.svg
7-
xdg-open examples/animate.svg
7+
chromium examples/animate.svg
88
"""
99
import svg
1010

1111

1212
def draw() -> svg.SVG:
1313
return svg.SVG(
1414
x=0, y=0,
15-
width=10, height=10,
16-
elements=[svg.Rect(x=0, y=0,
17-
width=10, height=10,
18-
elements=[svg.Animate(
19-
attributeName="rx",
20-
values="0;5;0",
21-
dur="10s",
22-
repeatCount="indefinite")]
23-
)]
15+
width=100, height=100,
16+
elements=[svg.Rect(
17+
x=0, y=0,
18+
width=100, height=100,
19+
elements=[svg.Animate(
20+
attributeName="rx",
21+
values="0;50;0",
22+
dur="10s",
23+
repeatCount="indefinite")]
24+
)]
2425
)
2526

2627

examples/animate.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)