Class: Goblins::Image

Inherits:
Pixelart::Image
  • Object
show all
Defined in:
lib/goblins.rb,
lib/goblins.rb

Class Method Summary collapse

Class Method Details

.generate(*values, background: nil) ⇒ Object



28
29
30
31
32
# File 'lib/goblins.rb', line 28

def self.generate( *values, background: nil )
  img = Goblins.generator.generate(  *values, background: background )
  ## note: unwrap inner image before passing on to c'tor (requires ChunkyPNG image for now)
  new( 24, 24, img.image )
end