simple-spinner/examples/pavyon.cr
Aşkın Gedik a7b2e9a6f3 init
2015-12-30 13:56:47 +02:00

12 lines
239 B
Crystal

require "../src/spinner"
require "colorize"
colors = {:red, :light_red, :yellow, :green, :light_blue, :blue, :magenta}
chars = colors.map do |color|
".xXx.".colorize(color)
end
spin = Spin.new(0.01, chars)
spin.start
sleep 3
spin.stop