From 2efb40d140af3c72eb5fc662f2e872bca017f2ee Mon Sep 17 00:00:00 2001 From: Naveen Date: Sun, 12 Mar 2023 04:22:51 +0530 Subject: [PATCH] Decrease flood fill tolerance to 1 This allows flood filling shapes made with very light colored strokes. Example: #FFF9FF on #FFFFFF --- .../kotlin/com/simplemobiletools/draw/pro/views/MyCanvas.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/draw/pro/views/MyCanvas.kt b/app/src/main/kotlin/com/simplemobiletools/draw/pro/views/MyCanvas.kt index 21bcdad..3cbeed9 100644 --- a/app/src/main/kotlin/com/simplemobiletools/draw/pro/views/MyCanvas.kt +++ b/app/src/main/kotlin/com/simplemobiletools/draw/pro/views/MyCanvas.kt @@ -28,7 +28,7 @@ import kotlin.math.min class MyCanvas(context: Context, attrs: AttributeSet) : View(context, attrs) { private val MIN_ERASER_WIDTH = 20f private val MAX_HISTORY_COUNT = 1000 - private val FLOOD_FILL_TOLERANCE = 10 + private val FLOOD_FILL_TOLERANCE = 1 private val mScaledTouchSlop = ViewConfiguration.get(context).scaledTouchSlop