Skip to content

oxling/simple-ascii-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple ASCII-Art Generator

To use, run AsciiGenerator example/input.bmp example/definitions.txt [grid size width] [grid size height]

The definitions file maps characters (including unicode characters) to darkness values. The format of the file is [character]:[value], where the entries are separated by newlines and the last entry ends with a semicolon. Note - ':' and ';' are reserved characters; trying to map a colon or semi-colon will cause the program to fail. See example/definitions.txt for a working definitions file.

The grid size defines scale - for example, a grid size of 2, 3 will average a block of 6 pixels two pixels wide and three pixels tall. This effectively scales the output. The grid size argument is optional.

About

A simple ASCII-Art Generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published