# File lib/scruffy/layers/stacked.rb, line 32
    def render(svg, options = {})
      current_points = points.dup
      
      layers.each do |layer|
        real_points = layer.points
        layer.points = current_points
        layer_options = options.dup
        layer_options[:color] = layer.preferred_color || layer.color || options[:theme].next_color          
        layer.render(svg, layer_options)
        options.merge(layer_options)
        layer.points = real_points
        
        layer.points.each_with_index { |val, idx| current_points[idx] -= val }
      end
    end