Post Reply 

Does GIMP allow to Distort an area using a random path?

Jul 9, 2011, 09:30
Post: #1
Does GIMP allow to Distort an area using a random path?
Hi.

I'd like to create custom effects using paths. Is it possible to distort a (rectangle) area along a given path? Let's suppose for instance I have a gradient in a rectangle area and I drew an open path manually with a few nodes forming waves, loops; I'd like to have the rectangle area "follow" the path and be distorted accordingly. Mathematically that would suppose:
  • the rectangle area would be stretched to fit the path length and
  • the rectangle area could be "bent" using its gravity centre as a reference point.
That'd be useful for creating smoke effects for instance. Can Gimp 2.6 do this or is there a plugin?

Thanks on advance.
Find all posts by this user
Quote this message in a reply
Jul 9, 2011, 16:25 (This post was last modified: Jul 9, 2011 16:26 by ofnuts.)
Post: #2
RE: Does GIMP allow to Distort an area using a random path?
What you want can likely be done by a totally different mechanism: just stroke the path, using the Brush tool, which in turn you set to "use color from gradient".
[attachment=517]

Now answering your questions on
https://Gimp-Forum.net
Visit this user's website Find all posts by this user
Quote this message in a reply
Jul 9, 2011, 19:27
Post: #3
RE: Does GIMP allow to Distort an area using a random path?
(Jul 9, 2011 16:25)ofnuts Wrote:  What you want can likely be done by a totally different mechanism: just stroke the path, using the Brush tool, which in turn you set to "use color from gradient".

Thanks ofnuts. However I want to distort the gradient perpendicularly. The stroke path mechanism (using a gradient brush) spreads the gradient *along* the path, while what I want is to translate or *slide* the gradient (or whatever rectangle area) along the path. But then maybe the stroke path function can still be used with the clipboard as a brush, am I right?
Find all posts by this user
Quote this message in a reply
Jul 9, 2011, 20:28
Post: #4
RE: Does GIMP allow to Distort an area using a random path?
(Jul 9, 2011 19:27)VinzC Wrote:  
(Jul 9, 2011 16:25)ofnuts Wrote:  What you want can likely be done by a totally different mechanism: just stroke the path, using the Brush tool, which in turn you set to "use color from gradient".

Thanks ofnuts. However I want to distort the gradient perpendicularly. The stroke path mechanism (using a gradient brush) spreads the gradient *along* the path, while what I want is to translate or *slide* the gradient (or whatever rectangle area) along the path. But then maybe the stroke path function can still be used with the clipboard as a brush, am I right?
Yes, but you need the brush to rotate to follow the path, this is only doable in 2.7.
If the gradient is symmetrical, you can emulate it with a series of single color strokes, from wide to narrow. I have a python plug-in to automate this here: http://sourceforge.net/projects/gimp-pat...s/scripts/ (this is the "neon-path" script in the "Decorations" section).

Now answering your questions on
https://Gimp-Forum.net
Visit this user's website Find all posts by this user
Quote this message in a reply
Jul 9, 2011, 20:45
Post: #5
RE: Does GIMP allow to Distort an area using a random path?
Ah, thanks, neon path might be what I'm looking for!
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Need Help about Gimp opening a whole lot files AlexWorX 1 73 Nov 17, 2017 19:44
Last Post: rich2005
  How do I open multiple images in Gimp? Pnem42 1 76 Nov 9, 2017 05:23
Last Post: paynekj
  How to draw a straight "path" KrisR 0 64 Nov 7, 2017 16:08
Last Post: KrisR
  removing unwanted portions of selected area in an image pizzipie 1 90 Nov 2, 2017 05:31
Last Post: paynekj
  Gimp prints multi page documents on one page samksharma 1 126 Oct 17, 2017 04:49
Last Post: paynekj

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS