def color(x, y, method)
      Kernel.raise ArgumentError, "Unknown PaintMethod: #{method}" unless PAINT_METHOD_NAMES.key?(method.to_i)
      primitive "color #{x},#{y},#{PAINT_METHOD_NAMES[method.to_i]}"
    end
def color(x, y, method)
      Kernel.raise ArgumentError, "Unknown PaintMethod: #{method}" unless PAINT_METHOD_NAMES.key?(method.to_i)
      primitive "color #{x},#{y},#{PAINT_METHOD_NAMES[method.to_i]}"
    end
Set color in image according to specified colorization rule. Rule is one of
 point, replace, floodfill, filltoborder,reset