mirror of
https://github.com/SimpleMobileTools/Simple-Draw.git
synced 2025-02-22 22:47:41 +01:00
Decrease flood fill tolerance to 1
This allows flood filling shapes made with very light colored strokes. Example: #FFF9FF on #FFFFFF
This commit is contained in:
parent
91985a977d
commit
2efb40d140
@ -28,7 +28,7 @@ import kotlin.math.min
|
|||||||
class MyCanvas(context: Context, attrs: AttributeSet) : View(context, attrs) {
|
class MyCanvas(context: Context, attrs: AttributeSet) : View(context, attrs) {
|
||||||
private val MIN_ERASER_WIDTH = 20f
|
private val MIN_ERASER_WIDTH = 20f
|
||||||
private val MAX_HISTORY_COUNT = 1000
|
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
|
private val mScaledTouchSlop = ViewConfiguration.get(context).scaledTouchSlop
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user