25 lines
311 B
Crystal
25 lines
311 B
Crystal
|
require "colorize"
|
||
|
|
||
|
"foo".colorize(:green)
|
||
|
100.colorize(:red)
|
||
|
[1, 2, 3].colorize(:blue)
|
||
|
|
||
|
# Available colors are:
|
||
|
# :default
|
||
|
# :black
|
||
|
# :red
|
||
|
# :green
|
||
|
# :yellow
|
||
|
# :blue
|
||
|
# :magenta
|
||
|
# :cyan
|
||
|
# :light_gray
|
||
|
# :dark_gray
|
||
|
# :light_red
|
||
|
# :light_green
|
||
|
# :light_yellow
|
||
|
# :light_blue
|
||
|
# :light_magenta
|
||
|
# :light_cyan
|
||
|
# :white
|