Created
February 14, 2024 22:24
-
-
Save t1ltxz-gxd/8546ea1f05d8b18c5cccc3c0919846f2 to your computer and use it in GitHub Desktop.
Valentine's card for your soulmate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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