Moved gradients to a class. wm_legend.py now defines self.gradient during __init__ - this will allow me to write code that changes the gradient color on-demand.