asciifyer 0.1.1

Rust library to easily turn images into ASCII art
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! An example for turning an image into ASCII
extern crate asciifyer;

use asciifyer::{convert_to_ascii, Dimension};
use std::env;

fn main() {
    let path = env::args().nth(1).expect("Please enter a path to an image");

    let dimensions = Dimension::new(50, 50);
    let ascii = convert_to_ascii(&path, Some(dimensions));

    println!("{}", ascii);
}