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:

  1. Open Illustrator and create a new document.
  2. Drag an image from your computer’s hard drive into Illustrator.
  3. Select the Gradient tool and click on the first image in your document to start the gradient.
  4. Click on the second image in your document to end the gradient.