We love creating custom gradients. Here is a gradient we created for a rainbow.
It is a freebie PXG gradient file to inspire you to create your own. All you have to do is download the file, open Pixelmator, and the Gradients panel, and import the file.
If you want to know more about Pixelmator Gradients, we discuss all the features of gradients in our tutorials.