Is there anyway to dictate the direction of a color gradient?

Hello, is there anyway to dictate the direction of a color gradient. For example, If I want this gradient to go from top to bottom, or at say 45º instead of from left to right as it only seems to be able to do? I tried reversing the UV coordinates but that just reversed the order of which color came first, not the direction of the color gradient. Does that make sense?

As long as your face has the same number of U and V samples, you could try transposing the list of values to rotate the output.

Yeah that was a good idea but it doesn’t work:its just making it monochromatic for some reason: