You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--- a/node_modules/react-native-scratch/android/src/main/java/com/reactlibrary/ScratchView.java
+++ b/node_modules/react-native-scratch/android/src/main/java/com/reactlibrary/ScratchView.java
@@ -76,7 +76,10 @@ public class ScratchView extends View implements View.OnTouchListener {
pathPaint.setStyle(Paint.Style.STROKE);
pathPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.CLEAR));
pathPaint.setAntiAlias(true);
-
+ pathPaint.setDither(true); // set the dither to true
+ pathPaint.setStyle(Paint.Style.STROKE); // set to STOKE
+ pathPaint.setStrokeJoin(Paint.Join.ROUND); // set the join to round you want
+ pathPaint.setStrokeCap(Paint.Cap.ROUND); // set the paint cap to round too
setLayerType(View.LAYER_TYPE_SOFTWARE, null);
}
Is there a way to make the brush pattern round? Or change it to be something different than the normal rectangle?
The text was updated successfully, but these errors were encountered: