I have a polygon in a irregular format and I want to fill it by using gradient. However, this gradient has to be in the same contour of the polygon. This means that, the gradient is not radial since this gradient will fill a "ball" in the center of the polygon. Further, it cannot be the linear since it does not the same contour of the polygon.

This is an example of the image that I want:

An example

I have tried it, but I really don't know how to reproduce this example. Please, I would like a solution in the illustrator or photoshop.

  • The last program I saw that did exactly what you want was Deluxe Paint III for the Commodore Amiga (contour gradient fill). It was great for making maps: you'd just draw a few random unconnected squiggles on your "land mass", contour fill with a brown and green gradient, and you'd automagically get something worthy of a National Geographic pull-out. Nov 6, 2015 at 12:00
  • Where can I download this program? Nov 6, 2015 at 21:49
  • Well, first you have to download a 25-year-old computer and operating system... Nov 7, 2015 at 11:51

2 Answers 2


One easy solution in Photoshop would be to use an Inner Glow with gradient and a large size:

enter image description here


In Illustrator your best bet is a colour blend. See here (Adobe Help) and see the second example (the cloud)

  • 2
    I would be more prone to upvote your answer if you provided further detail other than a link. If that link were to ever go down your answer will be removed. Link only answers are frowned on in SE and a majority of people downvote them.
    – user9447
    Nov 5, 2015 at 15:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.