Skip to content

leinonen/ascii-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ASCII to image converter

Needed a nerdy project while learning Go. The purpose of this program is to convert ASCII art files into PNG images.

ASCII art and so-called "block ASCII" or "high ASCII" uses the extended characters of the 8-bit Code Page 437 (the character set of the original IBM PC).

Example:

Example

Using a copy of the cp437 module to avoid dependencies. Using this to convert between CP437 and UTF-8, to get the extended characters to work properly.

Usage

go run . <ascii-file>

ASCII ART

Well, you need some ascii art files. Run the follwing commands to obtain some nice ascii art by Roy/SAC.

curl -o roy_ascii.zip http://www.roysac.com/images/galleries/ZIP/Roy_ASCII.ZIP

unzip roy_ascii.zip -d ascii

rm roy_ascii.zip

TODO

[X] Convert ASCII files to image
[ ] Convert ANSI files to image

About

Convert ASCII art into PNG images

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages