termdraw 0.1.4

A crate, which allows you to draw in the terminal.
Documentation

termdraw

A crate, which allows you to draw in the terminal.

Quick Start

You can find this crate on crates.io.

You can use cargo:

cargo add termdraw

Or include termdraw = "*" in the Cargo.toml file.

Exapmle

use std::io::{stdout, Write, Result};
use crossterm::{
    terminal::{Clear, ClearType, size},
    style::Color::*,
    cursor::SetCursorStyle,
    queue
};
use termdraw::shape::{self, *};

fn main() -> Result<()> {
    let mut out = stdout();

    loop {
        queue!(out, Clear(ClearType::All))?;
        queue!(out, SetCursorStyle::SteadyBlock)?;

        draw_background!(out, Black)?;
        draw_rect!(out, 50, 10, 100, 100, White, Black)?;
        out.flush()?;
    }
}