Module: ImageMosaic

Defined in:
lib/image_mosaic.rb,
lib/image_mosaic/railtie.rb,
lib/image_mosaic/version.rb,
lib/image_mosaic/image/child.rb,
lib/image_mosaic/image/mosaic.rb,
lib/image_mosaic/image/parent.rb,
lib/image_mosaic/data/validator.rb,
lib/image_mosaic/data/background.rb,
lib/image_mosaic/image/layout/grid.rb,
lib/image_mosaic/operations/construct.rb,
lib/image_mosaic/operations/compositor.rb

Defined Under Namespace

Modules: Data, Image, Operations Classes: Railtie

Constant Summary collapse

WIDTH =
1000
COLOUR =
'#ffffff'.freeze
LAYOUT =
'grid'.freeze
VERSION =
"0.1.3"

Class Method Summary collapse

Class Method Details

.create(items, layout: LAYOUT, colour: COLOUR, width: WIDTH) ⇒ Object



20
21
22
# File 'lib/image_mosaic.rb', line 20

def self.create(items, layout: LAYOUT, colour: COLOUR, width: WIDTH)
  Operations::Construct.new(items, layout: layout, colour: colour, width: width).parent
end