Sha256: 7e96ff42e78bbe990a1b39025d95a843ee55961381972f43ab80b9b879e18199

Contents?: true

Size: 724 Bytes

Versions: 28

Compression:

Stored size: 724 Bytes

Contents

# lib/gemwarrior/misc/animation.rb
# Animation routine

module Gemwarrior
  module Animation
    def self.run(opts)
      options = {
        :oneline => false, 
        :speed => nil, 
        :alpha => true, 
        :numeric => true, 
        :random => true
      }.merge(opts)

      th = Thread.new do
        print Matrext::process({
          :phrase     => options.fetch(:phrase),
          :oneline    => options.fetch(:oneline),
          :speed      => options.fetch(:speed),
          :alpha      => options.fetch(:alpha),
          :numeric    => options.fetch(:numeric),
          :random     => options.fetch(:random)
        })
      end

      return th.join
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
gemwarrior-0.9.27 lib/gemwarrior/misc/animation.rb
gemwarrior-0.9.26 lib/gemwarrior/misc/animation.rb
gemwarrior-0.9.24 lib/gemwarrior/misc/animation.rb
gemwarrior-0.9.23 lib/gemwarrior/misc/animation.rb
gemwarrior-0.9.22 lib/gemwarrior/misc/animation.rb
gemwarrior-0.9.21 lib/gemwarrior/misc/animation.rb
gemwarrior-0.9.20 lib/gemwarrior/misc/animation.rb
gemwarrior-0.9.19 lib/gemwarrior/misc/animation.rb
gemwarrior-0.9.18 lib/gemwarrior/misc/animation.rb
gemwarrior-0.9.17 lib/gemwarrior/misc/animation.rb
gemwarrior-0.9.16 lib/gemwarrior/misc/animation.rb
gemwarrior-0.9.15 lib/gemwarrior/misc/animation.rb
gemwarrior-0.9.14 lib/gemwarrior/misc/animation.rb
gemwarrior-0.9.13 lib/gemwarrior/misc/animation.rb
gemwarrior-0.9.12 lib/gemwarrior/misc/animation.rb
gemwarrior-0.9.10 lib/gemwarrior/misc/animation.rb
gemwarrior-0.9.9 lib/gemwarrior/misc/animation.rb
gemwarrior-0.9.8 lib/gemwarrior/misc/animation.rb
gemwarrior-0.9.7 lib/gemwarrior/misc/animation.rb
gemwarrior-0.9.6 lib/gemwarrior/misc/animation.rb