Class: Mugshot::MagickFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/mugshot/magick_factory.rb

Class Method Summary collapse

Class Method Details

.create_canvas(columns, rows, color) ⇒ Object



5
6
7
# File 'lib/mugshot/magick_factory.rb', line 5

def self.create_canvas(columns, rows, color)
  Magick::Image.new(columns, rows){ self.background_color = color }
end