Class: Pixelart::Image
- Inherits:
-
Object
- Object
- Pixelart::Image
- Defined in:
- lib/backgrounds/base.rb
Direct Known Subclasses
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 |