Class: Coolcats::Image

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

Class Method Summary collapse

Class Method Details

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



29
30
31
32
33
34
# File 'lib/coolcats.rb', line 29

def self.generate( *values, background: nil )
 ## note: always auto-add base coolcat archetye by default
  img = Coolcats.generator.generate( 'Base', *values, background: background )
  ## note: unwrap inner image before passing on to c'tor (requires ChunkyPNG image for now)
  new( 24, 24, img.image )
end