
gimp.orgDevelopment Update - ShapeĂÂ ToolHi! Iâm one of the contributors to GIMP. You might be familiar with my previous work, such as adding support for essential file formats, exploring cutting-edge color space models, and perhaps my greatest achievement, moving the âAboutâ option to the bottom of the Help menu.
Yet even those lofty accomplishments were not enough for me. In my arrogance and hubris, I decided to tackle a challenge that has confounded man and Wilber-kind alike since time immemorial. Something that has continued to elude us despite modern advances in science and technology. Something they said couldnât be done! SomethingâŚ
âŚlike implementing a shape tool in GIMP.
# âSo, can you draw a circle now?ââ
Yes. That was always an option.
The traditional methods involved using the rectangle and ellipse tools to create templates for these shapes. An alternative method, the GFig plug-in, has existed since at least 1997 and was specifically designed to let users create all kinds of shapes.
_Screenshot of GFig filter in action_
Admittedly, neither of these methods were the most convenient (or discoverable!) option.
The newly added Shape tool lets you make different types of shapes right on the canvas, including lines, rectangles, ellipses, polygons, stars, and spirals. You can either create them as a separate vector layer or draw directly on all selected raster layers. You can of course customize the fill and stroke settings just like our existing vector layers.
Now that weâve reached this milestone in GIMP development, letâs take a minute to look back and see how we got here!
## Ancient Historyâ
According to legend, the first _public_ request for a shape tool was made a quarter of a century ago on November 23rd, 2001. The original requester, **Hakon** , wanted to be able to draw simple shapes like squares and rectangles. Other community members suggested using the Stroke Selection feature to resolve the initial concern, but the interest in a full-on Shape tool continued.
Over time, the community discussion moved towards having vector layers as a pre-requisite for shapes. Since there were already methods to create raster shapes, it was believed that the one true Shape tool should be able to create shapes that could be non-destructively edited and transformed afterwards. Anything less would be unworthy of the title!
So the people waited, hoping that a contributor would arise who was pure of heart, strong of spirit, and able to bring vector layers to the masses.
## Vector Layersâ
As foretold by prophecy, in 2006 **Hendrik Boom** created vector layers as a Google Summer of Code project. While the code was functional by the end of the summer, there were still some missing polish needed before it could be merged into GIMP itself.
_Original vector layer GSoC project by Hendrik Boom (copyright unsure) - 2006_
Over the years, several developers such as project co-maintainer **Michael Natterer** , Help Manual maintainer **Jacob Boerema** , **Michael Schumacher** , and earlier contributors **Martin Nordholts** and **Gilles Rochefort** worked to maintain, update, and improve the code. Finally, its development was prioritized and completed for the GIMP 3.2 release!
## Proof of Conceptâ
With the necessary foundation in place, I took my first shot at making a Shape tool in early spring. I didnât have much experience with making a new tool, so I based my early experiments off the Scale tool. The thinking was that you could place a âunitâ vector layer, like a circle with a radius of 1, on the canvas and then stretch it as the user dragged the cursor. Pretty simple and straight-forward, right?
Unfortunately, I didnât really understand how to render previews of the shape on the canvas. Several failed attempts at real-time updates later, I settled on creating the path in the background and rendering it once the user released the cursor. Not ideal, but it was a start, and it allowed me to quickly draw circles, squares, and triangles!
Shortly after my first demo,