PathLayer(s) scaled width, fix #594

This commit is contained in:
Emux
2018-09-21 13:03:25 +03:00
parent 596679d1f9
commit 34f4432818
6 changed files with 43 additions and 14 deletions

View File

@@ -46,6 +46,7 @@ public class Style {
public final Paint.Cap cap;
public final boolean fixed;
public final double strokeIncrease;
public final float blur;
public final int stipple;
public final int stippleColor;
@@ -69,6 +70,7 @@ public class Style {
cap = builder.cap;
fixed = builder.fixed;
strokeIncrease = builder.strokeIncrease;
blur = builder.blur;
stipple = builder.stipple;
stippleColor = builder.stippleColor;
@@ -103,6 +105,7 @@ public class Style {
public Paint.Cap cap = Paint.Cap.ROUND;
public boolean fixed = false;
public double strokeIncrease = 1;
public float blur = 0;
public int stipple = 0;
public int stippleColor = Color.GRAY;
@@ -210,6 +213,11 @@ public class Style {
return this;
}
public Builder strokeIncrease(double strokeIncrease) {
this.strokeIncrease = strokeIncrease;
return this;
}
public Builder blur(float blur) {
this.blur = blur;
return this;