2015-12-30 11:55:14 +00:00
|
|
|
require "../src/spinner"
|
|
|
|
require "colorize"
|
|
|
|
|
2016-08-23 20:08:22 +00:00
|
|
|
colors = [:red, :light_red, :yellow, :green, :light_blue, :blue, :magenta]
|
2015-12-30 11:55:14 +00:00
|
|
|
chars = colors.map do |color|
|
2016-08-23 20:08:22 +00:00
|
|
|
".xXx.".colorize(color).to_s
|
2015-12-30 11:55:14 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
spin = Spin.new(0.01, chars)
|
|
|
|
spin.start
|
|
|
|
sleep 3
|
|
|
|
spin.stop
|