Making a dot gradient

This is a script with a couple of loops that will make a dot gradient. Just group the result and resize to suit.