Skip to content

Commit ef0ccf4

Browse files
author
huangziwei
committed
make paint more smoother
1 parent 26b4c4f commit ef0ccf4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doodle/src/main/java/cn/hzw/doodle/DoodlePath.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ protected void doDraw(Canvas canvas) {
128128
mPaint.setStrokeWidth(getSize());
129129
mPaint.setStyle(Paint.Style.STROKE);
130130
mPaint.setStrokeCap(Paint.Cap.ROUND);
131+
mPaint.setDither(true);
131132
mPaint.setAntiAlias(true);
132133

133134
getPen().config(this, mPaint);

0 commit comments

Comments
 (0)