1 unstable release

Uses old Rust 2015

0.1.0 Aug 28, 2017

#6 in #lolcat

MIT license

39KB
70 lines

rainbowcoat Build Status Coverage Status Crates.io

Adds rainbows over writers (inspired by lolcat)

Documentation

intall

Add the following to your Cargo.toml file

[dependencies]
rainbowcoat = "0.1"

usage

extern crate rainbowcoat;
use std::io::Write;

fn main() {
  write!(
    &mut rainbowcoat::Colors::configure(
      io::stdout(), 2.0, 0.4, 0.0
    ),
    "              _
                 ( |
                   |
            __,--./|.--,__
          .`   \ \ / /    `.
        .`      \ | /       `.
       /   /     ^|^      \   \
      /   / |     |o     | \   \
     /===/  |     |      |  \===\
    /___/   |     |o     |   \___\
            |     |      |
            |     |o     |
            |     |      |
            |     |o     |
            |     |      |
            |     |o     |
            |_____/\_____|
"
  )
}

Doug Tangren (softprops) 2017

Dependencies

~74KB