Gimp-Forum.net
Quartering simple strokes - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP)
+--- Thread: Quartering simple strokes (/Thread-Quartering-simple-strokes)



Quartering simple strokes - Ofnuts - 01-26-2018

Given a stroke with 4 simple Bezier splines:

[attachment=1368]

but before you(*) jump with joy, I don't know yet how to compute the intersection of these curves (the corners of the squares), assuming it is anatically possible.

Otherwise, the algorithm is:
  • take two opposite sides: the guide strokes and the remaining sides, the shape strokes
  • extract from the two existing shape strokes the angle of incidence on the guide stroke and the relative distance of the tangent points to the distance of the two anchors
  • with this data you can map either shape stroke along the guides at some percentage: compute the two anchors, and given angle and distance, compute the two tangents
  • so do the computation for the same percent form the two shapes, and interpolate the tangents using the percentage: two anchors, two tangents, you have a line between the two guides.
  • rinse and repeat

(*) you know who you are...


RE: Quartering simple strokes - Ofnuts - 01-26-2018

[attachment=1369]



RE: Quartering simple strokes - Espermaschine - 01-26-2018

(01-26-2018, 11:36 AM)Ofnuts Wrote: (*) you know who you are...

hi Smile


[attachment=1371]


RE: Quartering simple strokes - Ofnuts - 01-26-2018

[attachment=1372]



RE: Quartering simple strokes - Espermaschine - 01-26-2018

cloth ?


RE: Quartering simple strokes - Ofnuts - 01-26-2018

(01-26-2018, 09:46 PM)Espermaschine Wrote: cloth ?

Whatever fits your imagination... But the mind boggles. Given two envelope paths like the "initial" above, use path-inbetweener to generate the intermediate envelopes, apply the quartering on each, then stroke each quartered path on its own layer(*), and you have the animation of a flag in the wind.

Wondering is there is some use for some non-linear quartering (squared, rooted, or sine/cosine)

(*) paths are "quartered and drawn".


RE: Quartering simple strokes - Espermaschine - 01-26-2018

I've seen these kind of distorted wireframes a lot on techno flyers.

https://ukbassmusic.com/wp-content/uploads/2017/09/21246556_10159343317015158_9118606991327054914_o.jpg