gradient(source, destination) The gradient() function takes two input parameters: a source image and a destination image. The source image is used to create the starting point for the gradient, while the destination image is used to end the gradient. The following code example demonstrates how to create a gradient in Illustrator:
- Open Illustrator and create a new document.
- Drag an image from your computer’s hard drive into Illustrator.
- Select the Gradient tool and click on the first image in your document to start the gradient.
- Click on the second image in your document to end the gradient.