Skip to content

Instantly share code, notes, and snippets.

@t1ltxz-gxd
Created February 14, 2024 22:24
Show Gist options
  • Save t1ltxz-gxd/8546ea1f05d8b18c5cccc3c0919846f2 to your computer and use it in GitHub Desktop.
Save t1ltxz-gxd/8546ea1f05d8b18c5cccc3c0919846f2 to your computer and use it in GitHub Desktop.
Valentine's card for your soulmate
name = "YourName" # Replace with the name you want to use
name *= 3 # Enlarge the name so it can fill a larger area
print('\n'.join(
[''.join(
[name[(x-y)%len(name)] if((x*0.05)**2+(y*0.1)**2-1)**3-(x*0.05)**2*(y*0.1)**3<=0 else ' ' for x in range(-30,30)]
) for y in range(15,-15,-1)]
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment