5 releases

Uses old Rust 2015

0.3.0 Aug 12, 2021
0.2.3 Jan 11, 2016
0.2.2 Nov 22, 2015
0.2.1 Nov 21, 2015
0.2.0 Nov 21, 2015

#304 in Command-line interface

Download history 4500/week @ 2024-11-24 4687/week @ 2024-12-01 11694/week @ 2024-12-08 4664/week @ 2024-12-15 950/week @ 2024-12-22 1416/week @ 2024-12-29 4078/week @ 2025-01-05 4685/week @ 2025-01-12 4041/week @ 2025-01-19 4573/week @ 2025-01-26 5842/week @ 2025-02-02 5209/week @ 2025-02-09 6351/week @ 2025-02-16 5366/week @ 2025-02-23 7306/week @ 2025-03-02 27092/week @ 2025-03-09

46,388 downloads per month
Used in 39 crates (5 directly)

MIT/Apache

14KB
267 lines

drawille-rs

A terminal graphics library for Rust that enables the use of braille characters to draw shapes.

This is a port of asciimoo/drawille to Rust.

Usage

Just add ftxqxd/drawille-rs to your Cargo.toml:

[dependencies]
drawille = "0.3.0"

License

Licensed under either of

at your option.

Contribution

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


lib.rs:

drawille – a terminal graphics library for Rust, based on the Python library drawille.

This crate provides an interface for utilising Braille characters to draw a picture to a terminal, allowing for much smaller pixels but losing proper colour support.

Example

extern crate drawille;

use drawille::Canvas;

fn main() {
    let mut canvas = Canvas::new(10, 10);
    canvas.set(5, 4);
    canvas.line(2, 2, 8, 8);
    assert_eq!(canvas.frame(), [
"",
"  ⠙⢄  ",
""].join("\n"));
}

Dependencies

~0.1–6.5MB
~33K SLoC