2 unstable releases

✓ Uses Rust 2018 edition

0.2.0 Jul 1, 2019
0.1.0 Jun 17, 2019

#2 in #hue

MIT license

12KB
311 lines

bright

Build Status Crates.io LICENSE

preview

Beautiful terminal color

Install

Add this in your Cargo.toml:

[dependencies]
bright = "0.1.0"

Usage

use bright::*;

fn main() {
    println!("{}", "Hello world".bold().red().bg_green());
}

Styles

Modifiers

  • .bold()
  • .dim()
  • .italic()
  • .underline()
  • .slow_blink()
  • .fast_blink()
  • .invert()
  • .hidden()
  • .cross_out()

Colors

  • .black()
  • .red()
  • .green()
  • .yellow()
  • .blue()
  • .magenta()
  • .cyan()
  • .white()
  • .rgb(r, g, b)

Background colors

  • .bg_black()
  • .bg_red()
  • .bg_green()
  • .bg_yellow()
  • .bg_blue()
  • .bg_magenta()
  • .bg_cyan()
  • .bg_white()
  • .bg_rgb(r, g, b)

No runtime deps