news
Development Update - Shape Tool
Quoting: Development Update - Shape Tool - GIMP —
As it turned out, that person wasn’t able to continue working on the project. So in early October, I took another shot at it. Since my earlier attempt, I’d learned more about how GIMP draws GUI overlays on the canvas. Using the Draw tool APIs, I finally got a live preview to appear matching the selected shape. I could even show whether the shape would be filled in or just an outline before committing it.
Adding lines, rectangles, and ellipses was fairly easy after that - GIMP already has code to create paths in those shapes. But how could I create different-sided polygons like triangles and hexagons? After a few attempts of writing shape-specific functions, I realized GIMP already had working examples of how to do this generally - in the GFig filter!