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

#300 in Command-line interface

Download history 5316/week @ 2024-07-21 4710/week @ 2024-07-28 5045/week @ 2024-08-04 4585/week @ 2024-08-11 5277/week @ 2024-08-18 4623/week @ 2024-08-25 4825/week @ 2024-09-01 4349/week @ 2024-09-08 3874/week @ 2024-09-15 4324/week @ 2024-09-22 4725/week @ 2024-09-29 4617/week @ 2024-10-06 4197/week @ 2024-10-13 4765/week @ 2024-10-20 5739/week @ 2024-10-27 5070/week @ 2024-11-03

19,878 downloads per month
Used in 33 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–9.5MB
~43K SLoC