Class: Pixelart::Image

Inherits:
Object
  • Object
show all
Defined in:
lib/backgrounds/base.rb

Direct Known Subclasses

Background::Image

Instance Method Summary collapse

Instance Method Details

#background(*values) ⇒ Object



15
16
17
18
19
20
21
# File 'lib/backgrounds/base.rb', line 15

def background( *values )
  img = Background::Image.generate( *values,
                                      width:  @img.width,
                                      height: @img.height )
  img.compose!( self )
  img    # note: return new image
end