# "Close gap" in Fill tool

**URL:** <https://krita-artists.org/t/close-gap-in-fill-tool/32043>\
**Category:** Feature Requests\
**Tags:** implemented, for-tools, in-progress\
**Created:** [November 18, 2021, 6:10pm UTC](https://krita-artists.org/t/close-gap-in-fill-tool/32043 "2021-11-18T18:10:07Z")\
**Posts on this page:** 1\
**Showing post:** 127

<div class="post-metadata">

**Author:** ![YRH](https://krita-artists.org/user_avatar/krita-artists.org/yrh/32/232547_2.png) [@YRH](https://krita-artists.org/u/YRH)\
**Post date:** [December 6, 2023, 11:28pm UTC](https://krita-artists.org/t/close-gap-in-fill-tool/32043/127 "2023-12-06T23:28:51Z")

</div>

OK, so I was playing a bit with it today, and I kind of implemented the dumbest version of this feature 😛 This is simply using the existing selection algorithms to grow and shrink the fill and get rid of the gaps this way.

I believe this is the same (or very similar?) approach that @dk8 took in his [script](https://krita-artists.org/t/gap-closing-selection-script-wip/45460).

Here’s a quick test:

[![](https://img.youtube.com/vi/NUGPAb1v2-Y/maxresdefault.jpg "Krita gap closing test") ](https://www.youtube.com/watch?v=NUGPAb1v2-Y)

_(drawing reference: hidechannel2 🙂)_

This simplistic approach comes with all the expected shortcomings, notably the rounded edges issue. Also it will fail to fill completely, if the click is too close to the edge (this happens with bigger gap sizes).

I pushed the code here, in case anyone wants to take a look: [branch](https://invent.kde.org/yavn/krita/-/commits/close-gap-fill)

---

_[View the full topic](https://krita-artists.org/t/close-gap-in-fill-tool/32043)._
