Skip to content

Instantly share code, notes, and snippets.

@tirinox
Last active November 3, 2018 07:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tirinox/70b05f2e32a7024d4a8b52889d907a83 to your computer and use it in GitHub Desktop.
Save tirinox/70b05f2e32a7024d4a8b52889d907a83 to your computer and use it in GitHub Desktop.
# Prints pseudo 3D image in ASCII
import shutil
c, r = shutil.get_terminal_size()
print(''.join(('*' if (j-c/2) % (i+1) == 1 else '-' if 4*r/(i+1)%2==0 else ' ') for i in range(r) for j in range(c)), end='')
@tirinox
Copy link
Author

tirinox commented Nov 3, 2018

Preview:
screen shot 2018-11-03 at 10 14 23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment