Added january 1
This commit is contained in:
commit
86e4dac5f9
25
genuary01.py
Executable file
25
genuary01.py
Executable file
@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import random
|
||||
|
||||
print('<svg width="400" height="400" xmlns="http://www.w3.org/2000/svg">')
|
||||
|
||||
for x in range(10):
|
||||
for y in range(10):
|
||||
cx = 20 + x * 40
|
||||
cy = 20 + y * 40
|
||||
p = random.randint(1, 10)
|
||||
print(f'<circle cx="{cx}" cy="{cy}" r="5" style="fill:red;">')
|
||||
anim = f"""
|
||||
<animate
|
||||
attributeName="r"
|
||||
begin="0s"
|
||||
dur="{p}s"
|
||||
from="0"
|
||||
to="40"
|
||||
repeatCount="indefinite" />
|
||||
</circle>
|
||||
"""
|
||||
print(anim)
|
||||
|
||||
print("</svg>")
|
||||
1102
genuary01.svg
Normal file
1102
genuary01.svg
Normal file
File diff suppressed because it is too large
Load Diff
|
After Width: | Height: | Size: 20 KiB |
Loading…
x
Reference in New Issue
Block a user