Skip to content

A Rust library for rendering images to terminals

License

Apache-2.0, Unknown licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
Unknown
LICENSE-MIT
Notifications You must be signed in to change notification settings

richardanaya/ukiyoe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ukiyoe

docs.rs docs

Render images to the terminal using truecolor and unicode.

Screen Shot 2022-07-29 at 5 32 44 AM

This package was meant to be used by it's sister package kimono.

cargo add ukiyoe

Examples

Render to terminal with width and height.

use ukiyoe::Image;

fn main() {
    let mut image = Image::new("examples/test.png");
    image.render(100, 40);
}

Render at a specific location.

use ukiyoe::Image;

fn main() {
    let mut image = Image::new("examples/test.png");
    image.render_at_position(0, 0, 100, 40);
}

Render raw pixels.

Screen Shot 2022-07-30 at 1 59 33 PM

use ukiyoe::Image;

fn main() {
    Image::render_pixels(
        20,
        20,
        &[
            [255, 0, 0, 255],
            [0, 255, 0, 255],
            [0, 0, 255, 255],
            [0, 0, 255, 255],
        ],
        2,
    );
}

Art

ukiyoe_portland

License

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in ukiyoe by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

A Rust library for rendering images to terminals

Resources

License

Apache-2.0, Unknown licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
Unknown
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages