lib/gruff/scene.rb
# An array listing the folder names that will be rendered, from back to front.
#
# @example
#   g.layers = %w(sky clouds buildings street people)
An array listing the folder names that will be rendered, from back to front.
An array listing the folder names that will be rendered from back to front .
def draw
    image_paths = @layers.map(&:path).reject(&:empty?)
    images = Magick::ImageList.new(*image_paths)
    renderer.background_image = images.flatten_images
  end
def draw image_paths = @layers . map ( & :path ) . reject ( & :empty? ) images = Magick :: ImageList . new ( * image_paths ) renderer . background_image = images . flatten_images end
An array listing the folder names that will be rendered, from back to front.
An array listing the folder names that will be rendered from back to front .
# Join all the custom paths and filter out the empty ones
example
g.layers = %w(sky clouds buildings street people)
g . layers = %w ( sky clouds buildings street people )