1. Click on the Rectangle button.
2. Click and drag to draw a rectangle.
3. Click on the Inspector button to display the Inspector.
4. Click on the Gradient button to fill with a gradient.