class Magick::RVG
def background_fill=(color)
Sets the canvas background color. Either a Magick::Pixel or a color name.
def background_fill=(color) warn 'background_fill= has no effect in nested RVG objects' if @nested if color.is_a?(Magick::Pixel) @background_fill = color else 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 StandardError raise ArgumentError, "argument must be a color name or a Pixel (got #{color.class})" end end end