Create gradient

Nice bit of code for making gradients