Draw an horizontal line if you want to make an horizontal gradient, a vertical line if you want to make a gradient from top to bottom, or anything you want, any length, any angle...
Here I will just draw an horizontal line from left to right to make a simple linear gradient.