# File lib/rvg/rvg.rb, line 173
    def background_fill=(color)
        warn "background_fill= has no effect in nested RVG objects" if @nested
        if ! color.kind_of?(Magick::Pixel)
            begin
                @background_fill = Magick::Pixel.from_color(color)
            rescue Magick::ImageMagickError
                raise ArgumentError, "unknown color `#{color}'"
            rescue TypeError
                raise TypeError, "cannot convert #{color.class} into Pixel"
            rescue
                raise ArgumentError, "argument must be a color name or a Pixel (got #{color.class})"
            end
        else
            @background_fill = color
        end
    end