colorful

Unmaintained Colors in your terminal writes with Crystal Language. terminal xterm colorful
0.1.0 Latest release released

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

colorful:
  github: icyleaf/colorful.cr
  version: ~> 0.1.0
License MIT
Crystal 0.20.1

Authors

Dependencies 0

Development Dependencies 0

Dependents 0

Last synced .
search fire star recently