Crate drawille_nostd

source ·
Expand description

drawille-nostd – a no_std version of the drawille crate. This crate provides an interface for utilising Braille characters to draw a picture to a terminal, allowing no colour support.

Example

extern crate drawille_nostd;

use drawille_nostd::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"));
}

Structs

  • A canvas object that can be used to draw to the terminal using Braille characters.
  • A ‘turtle’ that can walk around a canvas drawing lines.