I have an idea in mind for a new tool or filter in GIMP. I have some programming experience, but I want to talk about it here before I attempt to make it.
My idea is a tool that can be used when tracing paths, but it may also be available as a brush (though it would be CPU-intensive). It’s purpose I intend it for is for tracing and cleaning up pencil drawings. You would need to draw paths on top of a scanned drawing before use.
In this tool, the user would set a value in radius times number of steps in colour value. This tool would trace over the paths, but with variable line thickness. It would work by limiting the amount of colour change in the neighbouring pixels.
For example, if you try to use this tool to trace a path in black with a value of 255, and the surrounding pixels are white, then it would draw strokes with a 1px radius. If the surrounding pixels are grey with RGB values of 128, then the colour would “spread” further out, and the strokes would have a radius of 2px.
Would this be a particularly challenging tool to implement?