This commit is contained in:
Aşkın Gedik 2015-12-30 14:07:31 +02:00
parent a7b2e9a6f3
commit 39b3f8680c
2 changed files with 18 additions and 0 deletions

View File

@ -32,6 +32,24 @@ sp.stop
`chars`: you can choose charset from [CHARSET](src/spinner/charset.cr) `default = CHARSET[:pipe]`
## Examples
```crystal
require "spinner"
require "colorize"
chars = CHARSET[:arrow].map do |c|
c.colorize(:light_green)
end
spin = Spin.new(0.2, chars)
spin.start
sleep 3
spin.stop
```
![Color](/images/color.gif)
## Contributing
1. Fork it ( https://github.com/askn/spinner/fork )

BIN
images/color.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB