Method: Pixelart::ImageComposite.read
- Defined in:
- lib/pixelart/composite.rb
.read(path, width: TILE_WIDTH, height: TILE_WIDTH) ⇒ Object
convenience helper
10 11 12 13 14 |
# File 'lib/pixelart/composite.rb', line 10 def self.read( path, width: TILE_WIDTH, height: TILE_WIDTH ) ## convenience helper img = ChunkyPNG::Image.from_file( path ) new( img, width: width, height: height ) end |