We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df722c0 commit 0e71090Copy full SHA for 0e71090
examples/animate.py
@@ -4,23 +4,24 @@
4
5
Usage:
6
python3 examples/animate.py > examples/animate.svg
7
- xdg-open examples/animate.svg
+ chromium examples/animate.svg
8
"""
9
import svg
10
11
12
def draw() -> svg.SVG:
13
return svg.SVG(
14
x=0, y=0,
15
- width=10, height=10,
16
- elements=[svg.Rect(x=0, y=0,
17
18
- elements=[svg.Animate(
19
- attributeName="rx",
20
- values="0;5;0",
21
- dur="10s",
22
- repeatCount="indefinite")]
23
- )]
+ width=100, height=100,
+ elements=[svg.Rect(
+ x=0, y=0,
+ elements=[svg.Animate(
+ attributeName="rx",
+ values="0;50;0",
+ dur="10s",
+ repeatCount="indefinite")]
24
+ )]
25
)
26
27
examples/animate.svg
0 commit comments