colorful

Version, currently 0.1.01 version
  • 0.1.0latestMar 10, 2017

github.com/icyleaf/colorful.cr

**Unmaintained** Colors in your terminal writes with Crystal Language.

2 stars
1 dependent
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  colorful:
    github: icyleaf/colorful.cr
    version: ~> 0.1.0

Then run:

shards install

shard.yml

Crystal
0.20.1
License
MIT
Author
icyleaf

Dependencies

This version declares no dependencies.

README

colorful.cr

License Version Dependency Status devDependency Status Build Status

Colors in your terminal writes with Crystal Language, inspired from colored.

Build in crystal version >= v0.20.1 (2016-12-05), Docs Generated in latest commit.

Installation

Add this to your application's shard.yml:

dependencies:
  colorful:
    github: icyleaf/colorful.cr

Usage

require "colorful"

# color examples
puts "green".green
puts "on_blue".on_blue
puts "black_on_white".black_on_white # same as black.on_white
puts "yellow_with_bold".yellow_with_bold # same as yellow.bold
puts "on_magenta_with_italic".on_magenta_with_italic # same as on_magenta.italic
puts "red_on_cyan_with_italic".red_on_cyan_with_italic # same as red.on_cyan.italic

puts "bule_on_white_with_underline".colorful({ "background" => "blue", "foreground" => "white", "mode" => "underline" })

# dump colors & modes
puts Colorful.colors
puts Colorful.modes

Contributing

  1. Fork it ( https://github.com/icyleaf/colorful.cr/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors