Class: Lilgoblins::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



78
79
80
81
82
# File 'lib/goblins.rb', line 78

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