This repository has been archived by the owner. It is now read-only.
colorful.cr
colorful.cr
Unmaintained, please use Offical starndard library Colorize instead!
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
- Fork it ( https://github.com/icyleaf/colorful.cr/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- [icyleaf] icyleaf - creator, maintainer
Repository
colorful.cr
Owner
Statistic
- 2
- 0
- 0
- 0
- 0
- over 7 years ago
- January 11, 2017
License
MIT License
Links
Synced at
Sat, 01 Jun 2024 06:46:50 GMT
Languages