Expand description
An image to ASCII art library for rust
§Features
- Color [default]: Processes the image color alongside the pixels during ASCII generation.
- Crossterm: Provides a simple method to put the ASCII into the console via crossterm. This does not output color
§Usage
§Simple
The functions to_ascii_lines and image_into_lines are the simplest way to convert an image into ASCII. Keep in mind, however, the dimensions taken by these functions are the exact level that the input image will be resized to, aspect ration is not respected.
§Advanced
The ASCIIGenerator struct can be used to have more control over the exact parameters used.
Structs§
- ASCII
Generator - A struct used to control the specifics of how an image is converted into ASCII.
- Line
Enums§
- ASCII
Error - Dynamic
Image - A Dynamic Image
- Resize
Mode - The type of resizing that the image will undergo.