Sha256: 32f884405c2c292ce014bd7b1e6f67920f4a5a74353a8de4c6d1f90b96e4fcd6

Contents?: true

Size: 873 Bytes

Versions: 48

Compression:

Stored size: 873 Bytes

Contents

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

module Gemwarrior
  module Animation
    def self.run(opts)
      options = {
        oneline:    false, 
        speed:      nil, 
        alpha:      true, 
        numeric:    true, 
        random:     true,
        color:      nil,
        background: nil
      }.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),
          color:      options.fetch(:color),
          background: options.fetch(:background)
        })
      end

      return th.join
    end
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
gemwarrior-0.15.20 lib/gemwarrior/misc/animation.rb
gemwarrior-0.15.19 lib/gemwarrior/misc/animation.rb
gemwarrior-0.15.18 lib/gemwarrior/misc/animation.rb
gemwarrior-0.15.17 lib/gemwarrior/misc/animation.rb
gemwarrior-0.15.16 lib/gemwarrior/misc/animation.rb
gemwarrior-0.15.15 lib/gemwarrior/misc/animation.rb
gemwarrior-0.15.14 lib/gemwarrior/misc/animation.rb
gemwarrior-0.15.13 lib/gemwarrior/misc/animation.rb
gemwarrior-0.15.12 lib/gemwarrior/misc/animation.rb
gemwarrior-0.15.11 lib/gemwarrior/misc/animation.rb
gemwarrior-0.15.10 lib/gemwarrior/misc/animation.rb
gemwarrior-0.15.9 lib/gemwarrior/misc/animation.rb
gemwarrior-0.15.8 lib/gemwarrior/misc/animation.rb
gemwarrior-0.15.7 lib/gemwarrior/misc/animation.rb
gemwarrior-0.15.6 lib/gemwarrior/misc/animation.rb
gemwarrior-0.15.5 lib/gemwarrior/misc/animation.rb
gemwarrior-0.15.4 lib/gemwarrior/misc/animation.rb
gemwarrior-0.15.3 lib/gemwarrior/misc/animation.rb
gemwarrior-0.15.2 lib/gemwarrior/misc/animation.rb
gemwarrior-0.15.1 lib/gemwarrior/misc/animation.rb