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