# "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:** 17\
**Page:** 11

<div class="post-metadata">

**Author:** ![ahmet\_tabak](https://krita-artists.org/user_avatar/krita-artists.org/ahmet_tabak/32/103331_2.png) [@ahmet\_tabak](https://krita-artists.org/u/ahmet_tabak)\
**Post date:** [January 22, 2024, 7:55pm UTC](https://krita-artists.org/t/close-gap-in-fill-tool/32043/208 "2024-01-22T19:55:05Z")

</div>

There is an enclose and fill option in Clip Studio Paint. It has a gap close feature, you can look at it if you wish. thanks for the answer

---

<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:** [January 22, 2024, 9:05pm UTC](https://krita-artists.org/t/close-gap-in-fill-tool/32043/209 "2024-01-22T21:05:57Z")

</div>

Sure, I’ll take a look at CSP to see how it works there. Probably it should just treat a region with gaps as if it was closed. I think it would be useful and intuitive to use as well.

Like I said, the main issue was the complexity of the existing tool, but I can definitely give it another shot once we settle on the current implementation.

---

<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:** [February 23, 2024, 4:29pm UTC](https://krita-artists.org/t/close-gap-in-fill-tool/32043/210 "2024-02-23T16:29:26Z")

</div>

Hi all! I’m very pleased to announce that the gap closing patch has been accepted to master today.

As usual, big thanks to @dkazakov for the review and many others for valuable comments.

We had to make some compromises and the feature is certainly not perfect, but it’s a start. I hope it will already be useful to everyone who’s been waiting for it for so long 🥲

Here are the temporary builds from master. Eventually, they will be available in Nightly builds (um, when they get restored!).

- Windows - [Artifacts · windows-build (#1603482) · Jobs · Graphics / Krita · GitLab](https://invent.kde.org/graphics/krita/-/jobs/1603482/artifacts/file/krita-5.3.0-prealpha-18f01ba8.zip)
- Linux - [Artifacts · linux-build (#1603481) · Jobs · Graphics / Krita · GitLab](https://invent.kde.org/graphics/krita/-/jobs/1603481/artifacts/file/_packaging/krita-5.3.0-prealpha-18f01ba829-x86_64.appimage)

Again, the current features are:

- gap closing up to 32 pixels - larger gaps will be ignored (check the resolution!)
- only the bucket fill and magic wand selection tools are supported (i.e. no enclose and fill)
- look in the UI for a “Close Gap” slider. Values larger than 0 will attempt to close gaps. Set it back to 0 if you don’t need this feature, as it comes with a performance penalty.  
 ![image](https://krita-artists.org/uploads/default/original/3X/d/2/d2c3d61420000c71f67f726978802136d22c2960.png)

If you have a chance to test it and run into a problem, feel free to tag me in your post. I hope we didn’t miss any bugs in the last minute as this one did see a significant churn over time…

Thank you! 🥳

---

<div class="post-metadata">

**Author:** ![Isamel\_Ray](https://krita-artists.org/user_avatar/krita-artists.org/isamel_ray/32/28755_2.png) [@Isamel\_Ray](https://krita-artists.org/u/Isamel_Ray)\
**Post date:** [February 23, 2024, 6:30pm UTC](https://krita-artists.org/t/close-gap-in-fill-tool/32043/211 "2024-02-23T18:30:55Z")

</div>

Congratulations! This is a historical day for Krita 🥳 😃

---

<div class="post-metadata">

**Author:** ![acc4](https://krita-artists.org/user_avatar/krita-artists.org/acc4/32/211051_2.png) [@acc4](https://krita-artists.org/u/acc4)\
**Post date:** [February 23, 2024, 7:37pm UTC](https://krita-artists.org/t/close-gap-in-fill-tool/32043/212 "2024-02-23T19:37:24Z")

</div>

Thank you so much for working on this feature 😍

---

<div class="post-metadata">

**Author:** ![SchrodingerCat](https://krita-artists.org/user_avatar/krita-artists.org/schrodingercat/32/137932_2.png) [@SchrodingerCat](https://krita-artists.org/u/SchrodingerCat)\
**Post date:** [February 23, 2024, 7:57pm UTC](https://krita-artists.org/t/close-gap-in-fill-tool/32043/213 "2024-02-23T19:57:07Z")

</div>

It works perfectly!, plus it works pretty fast.  
Thank you so much! 😭

---

<div class="post-metadata">

**Author:** ![kaichi1342](https://krita-artists.org/user_avatar/krita-artists.org/kaichi1342/32/8174_2.png) [@kaichi1342](https://krita-artists.org/u/kaichi1342)\
**Post date:** [February 23, 2024, 11:26pm UTC](https://krita-artists.org/t/close-gap-in-fill-tool/32043/214 "2024-02-23T23:26:38Z")

</div>

Congratulations 🥳 🎉

@SchrodingerCat Wow. Can’t wait to try it out.

Krita 5.3 is shaping up to be an awesome release.  
So many good features coming in.

---

<div class="post-metadata">

**Author:** ![sooz](https://krita-artists.org/user_avatar/krita-artists.org/sooz/32/93244_2.png) [@sooz](https://krita-artists.org/u/sooz)\
**Post date:** [February 24, 2024, 4:57am UTC](https://krita-artists.org/t/close-gap-in-fill-tool/32043/215 "2024-02-24T04:57:26Z")

</div>

Congratulations, @YRH. Thank you for all your hard work and determination.

---

<div class="post-metadata">

**Author:** ![Deevad](https://krita-artists.org/user_avatar/krita-artists.org/deevad/32/39730_2.png) [@Deevad](https://krita-artists.org/u/Deevad)\
**Post date:** [February 26, 2024, 11:54am UTC](https://krita-artists.org/t/close-gap-in-fill-tool/32043/216 "2024-02-26T11:54:19Z")

</div>

Congratulations! 🎉 It works really well and performances are good. 👍

---

<div class="post-metadata">

**Author:** ![EyeOdin](https://krita-artists.org/user_avatar/krita-artists.org/eyeodin/32/2662_2.png) [@EyeOdin](https://krita-artists.org/u/EyeOdin)\
**Post date:** [February 26, 2024, 2:58pm UTC](https://krita-artists.org/t/close-gap-in-fill-tool/32043/217 "2024-02-26T14:58:32Z")

</div>

Quality of life for sure 😃  
Honestly I think the gap to match CSP is smaller and smaller

---

<div class="post-metadata">

**Author:** ![kaichi1342](https://krita-artists.org/user_avatar/krita-artists.org/kaichi1342/32/8174_2.png) [@kaichi1342](https://krita-artists.org/u/kaichi1342)\
**Post date:** [February 26, 2024, 3:43pm UTC](https://krita-artists.org/t/close-gap-in-fill-tool/32043/218 "2024-02-26T15:43:02Z")

</div>

I want to add here - that gap close is also now enabled in palette drag and drop ;  
as seen here . So its something similar to procreate - I think. Its pretty fun.

Again thank you @YRH

> **[Use gap closing settings with palette drag and drop fill (!2079) · Merge...](https://invent.kde.org/graphics/krita/-/merge_requests/2079)**
>
> Per the Krita Artists request here, this patch makes the palette color drag-and-drop to fill feature honor gap closing settings of the flood...

I posted about this on twitter and also other MR I look forward to in 5.3 and it gather alot more attention than I anticipated XD.

---

<div class="post-metadata">

**Author:** ![Hologram](https://krita-artists.org/letter_avatar_proxy/v4/letter/h/41988e/32.png) [@Hologram](https://krita-artists.org/u/Hologram)\
**Post date:** [February 26, 2024, 3:48pm UTC](https://krita-artists.org/t/close-gap-in-fill-tool/32043/219 "2024-02-26T15:48:52Z")

</div>

Congrats @YRH and thanks to everyone involved who helped to make this feature a reality!

---

<div class="post-metadata">

**Author:** ![raghukamath](https://krita-artists.org/user_avatar/krita-artists.org/raghukamath/32/59144_2.png) [@raghukamath](https://krita-artists.org/u/raghukamath)\
**Post date:** [February 28, 2024, 8:04am UTC](https://krita-artists.org/t/close-gap-in-fill-tool/32043/220 "2024-02-28T08:04:21Z")

</div>

I think we can close this feature request to release the votes

Congrats everyone.

---

<div class="post-metadata">

**Author:** ![raghukamath](https://krita-artists.org/user_avatar/krita-artists.org/raghukamath/32/59144_2.png) [@raghukamath](https://krita-artists.org/u/raghukamath)\
**Post date:** [February 28, 2024, 8:04am UTC](https://krita-artists.org/t/close-gap-in-fill-tool/32043/221 "2024-02-28T08:04:34Z")

</div>



---

<div class="post-metadata">

**Author:** ![raghukamath](https://krita-artists.org/user_avatar/krita-artists.org/raghukamath/32/59144_2.png) [@raghukamath](https://krita-artists.org/u/raghukamath)\
**Post date:** [March 10, 2024, 12:46pm UTC](https://krita-artists.org/t/close-gap-in-fill-tool/32043/222 "2024-03-10T12:46:31Z")

</div>



---

<div class="post-metadata">

**Author:** ![Deif\_Lou](https://krita-artists.org/user_avatar/krita-artists.org/deif_lou/32/231530_2.png) [@Deif\_Lou](https://krita-artists.org/u/Deif_Lou)\
**Post date:** [March 10, 2024, 12:59pm UTC](https://krita-artists.org/t/close-gap-in-fill-tool/32043/223 "2024-03-10T12:59:35Z")

</div>

Just want to inform that I added the close gap feature to the enclose and fill as well.

---

<div class="post-metadata">

**Author:** ![raghukamath](https://krita-artists.org/user_avatar/krita-artists.org/raghukamath/32/59144_2.png) [@raghukamath](https://krita-artists.org/u/raghukamath)\
**Post date:** [July 7, 2024, 6:29am UTC](https://krita-artists.org/t/close-gap-in-fill-tool/32043/224 "2024-07-07T06:29:43Z")

</div>



[Previous page](https://krita-artists.org/t/close-gap-in-fill-tool/32043.md?page=10)
