simple-spinner/examples/color.cr

12 lines
183 B
Crystal
Raw Normal View History

2015-12-30 11:55:14 +00:00
require "../src/spinner"
require "colorize"
2015-12-30 14:21:42 +00:00
chars = Spinner::Charset[:arrow].map do |c|
c.colorize(:light_green).to_s
2015-12-30 11:55:14 +00:00
end
spin = Spin.new(0.2, chars)
spin.start
sleep 3
spin.stop