Sha256: 966da701214b717ffca57919ffc32a275c040395ec503b2437f077acb3b8fbb2

Contents?: true

Size: 689 Bytes

Versions: 18

Compression:

Stored size: 689 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

18 entries across 18 versions & 1 rubygems

Version Path
gemwarrior-0.10.8 lib/gemwarrior/misc/animation.rb
gemwarrior-0.10.7 lib/gemwarrior/misc/animation.rb
gemwarrior-0.10.6 lib/gemwarrior/misc/animation.rb
gemwarrior-0.10.5 lib/gemwarrior/misc/animation.rb
gemwarrior-0.10.4 lib/gemwarrior/misc/animation.rb
gemwarrior-0.10.2 lib/gemwarrior/misc/animation.rb
gemwarrior-0.10.1 lib/gemwarrior/misc/animation.rb
gemwarrior-0.10.0 lib/gemwarrior/misc/animation.rb
gemwarrior-0.9.39 lib/gemwarrior/misc/animation.rb
gemwarrior-0.9.37 lib/gemwarrior/misc/animation.rb
gemwarrior-0.9.36 lib/gemwarrior/misc/animation.rb
gemwarrior-0.9.35 lib/gemwarrior/misc/animation.rb
gemwarrior-0.9.34 lib/gemwarrior/misc/animation.rb
gemwarrior-0.9.33 lib/gemwarrior/misc/animation.rb
gemwarrior-0.9.32 lib/gemwarrior/misc/animation.rb
gemwarrior-0.9.31 lib/gemwarrior/misc/animation.rb
gemwarrior-0.9.30 lib/gemwarrior/misc/animation.rb
gemwarrior-0.9.28 lib/gemwarrior/misc/animation.rb