Module: Asciimation

Defined in:
lib/asciimation.rb,
lib/asciimation/version.rb,
lib/asciimation/animator.rb,
lib/asciimation/drop_animator.rb,
lib/asciimation/argument_parser.rb

Defined Under Namespace

Classes: Animator, ArgumentParser, DropAnimator

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.animate(args) ⇒ Object



10
11
12
13
14
15
16
17
18
19
# File 'lib/asciimation.rb', line 10

def animate(args)
  Rurses.program(modes: i[c_break no_echo hide_cursor]) do |screen|
    screen.refresh_in_memory
    Rurses.update_screen

    Animator.new(ArgumentParser.new(args)).animate(screen)

    Rurses.get_key
  end
end