00:00
00:00
xeiavica
Matthew Polk @xeiavica

Age 31

Joined on 12/26/23

Level:
5
Exp Points:
232 / 280
Exp Rank:
> 100,000
Vote Power:
4.33 votes
Rank:
Civilian
Global Rank:
> 100,000
Blams:
0
Saves:
5
B/P Bonus:
0%
Whistle:
Normal
Medals:
1
Supporter:
1y 1m 30d

Updated my perl script for ANSI artwork

Posted by xeiavica - 3 weeks ago


For like 2 days, I've been casually slapping together a perl script to do ANSI artwork. At first I thought to just embed the ANSI directly in the file. Then per @s3c's suggestion to automate it, I realized it needed work. So instead of getting messy with the sigil '$' character (Such as $A$B$C which was my original intention), just regex substitute each character from an external file. I've updated it just now to allow comments. So if you like ANSI artwork, this might be cool to check out. It's very simple in design, nothing impressive, but gets the job done. It turns this:


# This is a comment. Everything beyond it including the pound sign is ignored.

222222333333333
1555555#6789ABCDEF

FFFFFE#1235677444444444
# Notice how this is not shown.
ABCDEFFFFFFFFFFFFFFFF1111#4444444

into this:


iu_1354177_20436071.png


Note that blank lines are also printed as well. I don't consider this to be an issue honestly. I thought this was a good learning experience from it all. The link is here.


4

Comments

Comments ain't a thing here.