File .pat and .GIF format

How can I make a file with .pat format in Rhino and then add it as a new hatch. I would also like to export in .gif format for small animations