You are here

Smart Gradient

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
Rate this item!
AttachmentSize
smartgradient.py.txt4.9 KB

This is a simple gradient plugin for GIMP, written in python. It applies a linear gradient to a rectangular selection, in one of four directions, using the colours of the pixels at the starting edge, and fading to the background colour, over the width, or height of the selection. To try this out, all you need to do is download the script, and store it in the gimp plugins folder, in your home directory. Remember to set the executable flag on the file. An example of use may be found on my site : www.andyshelley.co.uk/gimpgradient/index.php

Edit : I have now updated the script, so that the gradient effect appears on a new layer.

Edit: The script is now updated to give extra fading options.

Code License: 
GIMP Version: 
Scripting Engine: 

Comments

Nice script
What's the chances you can get it to respect non rectangular selections?
Holes in selections?
Maybe folow a path?
Maybe the grad effect can be placed on a new layer, then it can be edited to fit the required patch.

Thank you anyway, in it's current form it is going to be usefull

or after you may use a layer mask

Thanks for the comments. I have now updated the script, so that the gradient effect appears on a new layer.

I have added another update, to allow the gradient to optionally fade out to the selection edge colours, rather than the background colour. The website example is upgraded to show this.

Subscribe to Comments for "Smart Gradient"