This function
generates a simple Gradient with adjustable direction.
The Direction vector
controls the angle of the gradient. Only axis aligned (horizontal
or vertical) gradients
result in a seamless texture.
The Amplify value
controls the gradient's steepness. A value of 100 gives you
the full range gradient. Increase the value to create single
colored bars at the end of the gradient.