You can use this tool to draw objects filled with a Color Gradient.

The Gradient panel lets you specify the style and direction of the gradient.

You can apply a gradient that goes from black to the primary color, from the primary color to the secondary color or a custom gradient with an arbitrary number of colors. The gradient color are configured at the Color panel.