We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffc5c8c commit 23e29c3Copy full SHA for 23e29c3
library/src/main/java/com/flyjingfish/shapeimageviewlib/ShapeImageView.java
@@ -272,8 +272,7 @@ private void drawBgShape(Canvas canvas) {
272
y0 = height / 2 * percent + height / 2;
273
} else if (angle <= 180) {
274
float percent = (angle - 135) / 45;
275
- x0 = width / 2 + width / 2 * percent;
276
- ;
+ x0 = width / 2 + width / 2 * (1-percent);
277
y0 = height;
278
} else if (angle <= 225) {
279
float percent = (angle - 180) / 45;
@@ -290,7 +289,6 @@ private void drawBgShape(Canvas canvas) {
290
289
} else {
291
float percent = (angle - 315) / 45;
292
x0 = width / 2 * percent;
293
294
y0 = 0;
295
}
296
x1 = width - x0;
0 commit comments