Hello
In ChitChat I made a link to all about Bezier-Curves OK here again:
http://pomax.github.io/bezierinfo/Where you can learn nearly all about Bezier; with a lot of interactive pictures (Pages.js and Bezier.js) , very very nice for beginners as wel as experts (to become
I was intrigued by the Casteljau-algorithm to compute points of a Bezier curve, implemented it in a PythonFu Plugin:
Attachment:
uebung_07a.zip
And here a picture for some explanations:
Attachment:
bezier_test_03.png
OK, try as follows:
1. download the *.zip en unzip it either in existing plugin directory, Gimp looks at, or an new one and inform Gimp where to look to.
2. start Gimp and open say a new window (empty or not)
3. the plugin should occur under a Tab in the main window under PKHG ;-) with name: Casteljau alemein ..
4. first try if it works and aftwards play with the parameters
In the upper image you see the handles of a Path and what the Plugin does with not changed parameters (maybe the number of points around 200 say).
The Brush is not yet active, though you can push it, help to activate it for the plugin is appreciated
If the handle- vectors are set (anti-)symmetric and a vertical then the painted points are symmetrical too, if not, the number of point on one end may be much more or so ... try
Comments are welcome ;-)
Peter
My main question is why don't you use a Gimp path... Gimp paths are Bezier splines (or a string of such). From a path object it is easy to get the coordinates of the 4 points, which is a much better interface than entering 8 coordinates. Plenty of examples
. See in particular path-dump and path-csv.
Also, when you publish something on the Internet, English is the de facto language (for the UI, but also for code comments and function/variable names).