Skip to content

EliasLeguizamon123/polychrome

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Polychrome

drawing

Polychome is a crate for printing styled text in your terminal.

Usage

Just add to your Cargo.toml

[dependencies]
polychrome = "2.0.2"

an then just use it!

use polychrome::ColorPrintExt;

fn main() {
    println!("{}", "Hello, world!".color(255, 0, 0).underline(None));
    println!("{}", "Hello, world!".color(0, 0, 255).underline(Some("stripe")));
}