Skip to content

Instantly share code, notes, and snippets.

@reddgr
Created October 4, 2024 09:42
Show Gist options
  • Save reddgr/355252507defd7cca0cbf986a4c94608 to your computer and use it in GitHub Desktop.
Save reddgr/355252507defd7cca0cbf986a4c94608 to your computer and use it in GitHub Desktop.
Increasingly zalgoed Zalgo text
import time
import os
import platform
from random import choice
def zalgo(text, Z):
marks = list(map(chr, range(768, 879)))
words = text.split()
result = ' '.join(
''.join(
c + ''.join(choice(marks) for _ in range((i // 2 + 1) * Z)) if c.isalnum() else c
for c in word
)
for i, word in enumerate(words)
)
print(f'{result}\n')
return
clear_command = 'cls' if platform.system() == 'Windows' else 'clear'
clear = lambda: os.system(clear_command)
for Z in range(0,50,1):
clear()
zalgo('INVOKE CHAOS', Z)
time.sleep(0.1)
time.sleep(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment