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