GIMP Gradient Script
A while back I wanted to create some hypsometric gradients in GIMP. There a quite a few out there (usually as jpegs) and being a lazy guy I wrote a script rather than messing about with the gradient editor (attached).
The script gets loaded into the gradient menu (accessible in the gradient palette, click the < arrow in the right hand corner). Chose the image and layer (drawable), dial the segments in the gradient, and select if you want the segments to be blended or stepped.
The program will sample the entire source vertically, and horizontally depending on the segments selected.
Here is a source image I ran the script on:
and here is the resultant gradient that was created, opened in the gradient editor:
And a resultant fill with that gradient:
Unchecking "smooth" will make the gradient colour steps. I have limited it to 256 steps, but you could change she script to more quite easily (the limit for GIMP gradients is 1024).
You are truly amazing Rob. The makers of Gimp should give you some sort of award for contributions to the program.
Many more people have contributed many more scripts than I ever will. Though I was flattered that my inkscape z-order extension is making it into the next formal release :)
So would I use this to create a snow capped mountain gradient, or is there an easier way to do that?
I really designed the script to take image gradients (of which there are many) and get a Gimp gradient I could use with the gradient tool. I could, however, work just as well with manually created images to fabricate a gradient from scratch without messing about with the gradient editor (though the editor is much more powerful in terms of setting the gradient segments, steps, and curves)
Just a quick update, I have posted a new script at the gimp plugin registry that works similarly, but allows you to sample an image along an arbitrary path to generate a gradient.
OLD thread, but...
So does this mean I can sample a gradient from a map I like, ranging from low to high, and then project this onto an arbitrary heightmap in my image?