Method: Pixelart::GeneratorEx.read

Defined in:
lib/punks/pixelart/generator.rb

.read(image_path = "./spritesheet.png", meta_path = "./spritesheet.csv", width: 24, height: 24, image_class: Image) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/punks/pixelart/generator.rb', line 5

def self.read( image_path="./spritesheet.png",
               meta_path="./spritesheet.csv",
              width: 24,
              height: 24,
              image_class: Image )

  sheet = SpritesheetEx.read( image_path,
                            meta_path,
                            width: width, height: height )
  new( sheet, image_class: image_class )
end