Class: ShatteredMachine::Glitcher
- Inherits:
-
Object
- Object
- ShatteredMachine::Glitcher
- Defined in:
- lib/shattered_machine/glitcher.rb
Overview
Main class to call from glitching image.
Instance Method Summary collapse
-
#call ⇒ boolean
Status of glitching.
-
#initialize(glitch_library, io, options = {}) ⇒ Glitcher
constructor
A new instance of Glitcher.
Constructor Details
#initialize(glitch_library, io, options = {}) ⇒ Glitcher
Returns a new instance of Glitcher.
17 18 19 20 21 |
# File 'lib/shattered_machine/glitcher.rb', line 17 def initialize(glitch_library, io, = {}) @glitch_library = glitch_library @io = io @options = end |
Instance Method Details
#call ⇒ boolean
Returns status of glitching.
24 25 26 27 28 |
# File 'lib/shattered_machine/glitcher.rb', line 24 def call @io.png_images.each do |item| create_glitch(item.input, item.output) end end |