Skip to content

Commit

Permalink
Merge pull request #7 from kaunta/i5
Browse files Browse the repository at this point in the history
generate flag
  • Loading branch information
kaunta committed Nov 22, 2019
2 parents d447ff6 + 129a0dd commit 3e459ac
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pacific-factbook/__main__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from . import name
from . import name, flag

print(name.generate())
print(flag.generate())
11 changes: 11 additions & 0 deletions pacific-factbook/flag.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
def generate() -> str:
"""
Generate a random flag. Outputs SVG blob.
"""
return """
<svg width="300" height="200">
<rect width="100%" height="100%" fill="blue"/>
<circle cx="50" cy="50" r="40" stroke="green" stroke-width="4" fill="yellow" />
</svg>
"""

0 comments on commit 3e459ac

Please sign in to comment.