Results 1 to 8 of 8

Thread: GIMP Gradient Script

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Info 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.
    Click image for larger version. 

Name:	2008-06-04_130903.png 
Views:	341 
Size:	12.6 KB 
ID:	4129

    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:
    Click image for larger version. 

Name:	hypso_humid_boost.png 
Views:	317 
Size:	2.9 KB 
ID:	4130

    and here is the resultant gradient that was created, opened in the gradient editor:
    Click image for larger version. 

Name:	2008-06-04_131245.png 
Views:	255 
Size:	12.8 KB 
ID:	4131

    And a resultant fill with that gradient:
    Click image for larger version. 

Name:	gradient.png 
Views:	314 
Size:	49.9 KB 
ID:	4132

    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).

    -Rob A>
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •