Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: How can I do a limited/masked gradient fill in GIMP?

  1. #11
      RobA is offline
    Administrator RobA's Avatar
    Join Date
    Apr 2007
    Location
    Niagara, Canada
    Posts
    5,550

    Default

    This is the best I could do with inkscape.

    I duplicated the inner shape after tracing the bitmap, then dragged out each node to its respective location on the larger shape so all the node counts and orientations matched.
    How can I do a limited/masked gradient fill in GIMP?-inkscape_interp.png

    This was a 30 item interpolate, with a 0.5% blur applied to smooth it out.

    -Rob A>

  2. #12
      Thurlor is offline
    Guild Journeyer Thurlor's Avatar
    Join Date
    Apr 2011
    Location
    Phillip Island, Victoria, Australia
    Posts
    126

    Default

    @sambrookjm: Unfortunately I think I am doing something wrong as your script just makes a large circular gadient centred in my image.

    @RobA: That is actually the approach I have been working on, but I am none to keen about fiddling with the nodes as Inkscape has a tnedency to crash when I start working on things like that. The other thing I noticed is that I would need to create a 'mid-way' guide contour if one of my shapes is especially complex. In the test image I provided the inner shape has a curved 'indent' that needs to be guided to the outer shape, else one gets high contrast edges/ridges forming. I hope that makes sense.

    Recently I have been looking into using Wilbur. I just wish Wilbur allowed the use of layers, so far I've been exporting as greyscale bmp's and combining them in Gimp as layers.

    Anyways, back to it for me.

  3. #13
      sambrookjm is offline
    Guild Apprentice
    Join Date
    Jan 2009
    Posts
    28

    Default Color to Alpha first

    Quote Originally Posted by Thurlor View Post
    @sambrookjm: Unfortunately I think I am doing something wrong as your script just makes a large circular gadient centred in my image.
    Try making the white part transparent (color to alpha). That way, you'll only get the shape to have the gradient.

    If you make the white background transparent, it will look like ths:

    Name:  WithAlpha.png
Views: 156
Size:  43.3 KB

    As I said, it's not a perfect script, but it is a starting point. Maybe a select by color instead of a select by alpha would be better?
    I think I've had this Deja Vu before...

  4. #14
      Thurlor is offline
    Guild Journeyer Thurlor's Avatar
    Join Date
    Apr 2011
    Location
    Phillip Island, Victoria, Australia
    Posts
    126

    Default

    @sambrookjm: Now I see where I was going wrong. After the month winds down and I'm not messing with a challenge entry I'll look into again.

  5. #15
      sambrookjm is offline
    Guild Apprentice
    Join Date
    Jan 2009
    Posts
    28

    Default New version of the script.

    Quote Originally Posted by Thurlor View Post
    @sambrookjm: Now I see where I was going wrong. After the month winds down and I'm not messing with a challenge entry I'll look into again.
    There were a couple of errors in the first version of the script, mainly when the layers weren't the same size as the image. I've fixed that, and also given the choice of either doing the entire alpha channel of the layer, or just selecting a specifc color. Use this new version of the script when you get around to it.

    JMS-ContourLines.zip
    I think I've had this Deja Vu before...

  6. #16
      Thurlor is offline
    Guild Journeyer Thurlor's Avatar
    Join Date
    Apr 2011
    Location
    Phillip Island, Victoria, Australia
    Posts
    126

    Default

    @sambrookjm: Once again thank you.

Page 2 of 2 FirstFirst 12

Posting Permissions

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