Decrease bucket fill tolerance to 190

200 ignores green color and fills the whole thing. It should be noted that lighter color shades are still ignored with 190 as they only work well at tolerance ~10.
This commit is contained in:
Naveen 2022-10-12 01:29:50 +05:30
parent 1456648f6d
commit 853eecf876

View file

@ -32,7 +32,7 @@ class MyCanvas(context: Context, attrs: AttributeSet) : View(context, attrs) {
private val MIN_ERASER_WIDTH = 20f
private val MAX_HISTORY_COUNT = 1000
private val BITMAP_MAX_HISTORY_COUNT = 60
private val DEFAULT_FLOOD_FILL_TOLERANCE = 200
private val DEFAULT_FLOOD_FILL_TOLERANCE = 190
private val mScaledTouchSlop = ViewConfiguration.get(context).scaledTouchSlop