allow arbitrary strings as the filler to hide messages
This commit is contained in:
parent
0717bae69e
commit
ab92a235da
1 changed files with 6 additions and 2 deletions
|
@ -1,7 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
''''exec /usr/bin/env python3 -u "$0" $@ #'''
|
''''exec /usr/bin/env python3 -u "$0" $@ #'''
|
||||||
|
|
||||||
__doc__ = 'little script to make irc color art that will probably get you banned'
|
__doc__ = 'little script to make irc color art that will probably get you banned'
|
||||||
|
# whee, look at this sus shebang workaround to always cause
|
||||||
|
# unbuffered mode lol
|
||||||
|
|
||||||
import sys,time
|
import sys,time
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
|
@ -22,6 +23,8 @@ ipix = width // ASCIIWIDTH # // instead of / to devide with a round number
|
||||||
|
|
||||||
asciiHeight = height // ipix // 2
|
asciiHeight = height // ipix // 2
|
||||||
|
|
||||||
|
currentPixel = 0
|
||||||
|
|
||||||
for y in range(asciiHeight):
|
for y in range(asciiHeight):
|
||||||
line = []
|
line = []
|
||||||
lastColor=69420
|
lastColor=69420
|
||||||
|
@ -32,8 +35,9 @@ for y in range(asciiHeight):
|
||||||
colorcode = ''
|
colorcode = ''
|
||||||
else:
|
else:
|
||||||
colorcode =COLORCHAR.format(color, color)
|
colorcode =COLORCHAR.format(color, color)
|
||||||
line.append(colorcode+FILLER)
|
line.append(colorcode+(FILLER[currentPixel % len(FILLER)]))
|
||||||
lastColor=color
|
lastColor=color
|
||||||
|
currentPixel+=1
|
||||||
|
|
||||||
print(''.join(line))
|
print(''.join(line))
|
||||||
if len(sys.argv) > 2:
|
if len(sys.argv) > 2:
|
||||||
|
|
Loading…
Reference in a new issue