Created
December 1, 2017 23:01
-
-
Save drbrain/235a644692e75f485150ddf4fbd954fb to your computer and use it in GitHub Desktop.
color Z̤̯̤͈̲̠͋͟A̷̞͌̍̆̓L̺̙͖G̜̣̱̃̍́ͮO̤͙̫͔̔́̏͐̇͡
This file contains hidden or 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
def color(i) | |
color = 16 + (i * 13) % 216 | |
"\e[38;5;#{color}m" | |
end | |
5.times { puts } | |
zalgo = "Z̤̯̤͈̲̠͋͟A̷̞͌̍̆̓L̺̙͖G̜̣̱̃̍́ͮO̤͙̫͔̔́̏͐̇͡!̷͙͉͖̋ͩ̓̇̿" | |
zalgo.each_char.with_index do |c, i| | |
$stdout.write "#{color i}#{c}" | |
end | |
$stdout.puts "\e[39m" | |
5.times { puts } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment