artscii
A cli tool to generate ascii art.
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:::::::::::::::::::::::::::::::::::::::::;::::::::::::::::::::::::::::::::::::::::
:::::::::::::::::::::::::::::::::::;?%::%%;+:%::;:;:::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::;:;;%%%?%%%%%%%%%%%*%%;:+:::::::::::::::::::::::::::::
:::::::::::::::::::::::::::::%%%%%%%%%%%%%%%%%%%%%%%%%::::::::::;:::::::::::::::::
::::::::::::::::%+::::::;+%%?%%%%%%%%%%%%%%%%%%%%%%%%%*%%::::::%%%::::::::::::::::
:::::::::::::%?++%%%:::;;:%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%:;;::%%%%+:%%::::::::::::
:::::::::::;%%%?:%%%:::%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%::%%%%%%%:::::::::::::
:::::::::::::%%%%%%%::::%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%:::?%%%%%::::::::::::::
::::::::::::::::%%%::%%%%%%%%%%%%%%%%:@S%%%%%+#@%%%%%%%%%%%%%%:%%*::::::::::::::::
::::::::::::::::;:%%%:%%%%%%%%%%%%%%:.@@@%%%@:.@@%%%%%%%%%%%?%%?::::::::::::::::::
::::::::::::::::::::%%%%%%%%%%%%%%%%@@@@#%%%#@@@@%%%%%%%%%%%%%%:::::::::::::::::::
:::::::::::::::::;%%%%:SS%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%SSSS*%%%:::::::::::::::::
::::::::::::::::::;:%%%:S%:::SSS%%%%%%%%%%@%%%%%%%%SSS*::;;S:%%+;:::::::::::::::::
::::::::::::::::::::::%%::S::::::+:::.::::::::.:::;:::::;::+%%::::::::::::::::::::
::::::::::::::::::::::;:%::;::::::::::::::::::::::::::::::;*?:::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::;:::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Installation
Pre-built binary (for CLI use)
If you want to use it as a CLI tool, head over to the releases page.
- Download
artscii-...-.tar.gzfor your preferred platform. - Extract the file via
tar xzvf artscii-...-.tar.gz. - Run
./artscii --path /path/to/img.
Using Cargo (for lib use)
If you want to use this as a dependency in your project.
Usage
As a library
use Frame;
// load image as a frame
let frame = from_path?
.resize?
.colorise?;
// holds a Vec<char> with the converted ascii chars
let ascii = frame.to_ascii.unwrap;
// optionally print it
render;
As a CLI tool
Options