Skip to content

Instantly share code, notes, and snippets.

@jleedev
Last active June 2, 2022 21:42
Show Gist options
  • Save jleedev/adbb8d662b92bbc793b7ca05ae1ba356 to your computer and use it in GitHub Desktop.
Save jleedev/adbb8d662b92bbc793b7ca05ae1ba356 to your computer and use it in GitHub Desktop.
size=512
print(f'''<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="{size//2}" height="{size//2}" viewBox="0 0 {size} {size}">
<rect width="{size}" height="{size}"/>
<path d="M0,0''')
for i in range(size//2):
print(f'V{size}h1V0zm2 0')
print('M0,0')
for i in range(size//2):
print(f'H{size}v1H0zm0 2')
print('" fill="#fff" fill-rule="evenodd" /></svg>')
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment