feat: update stroke generation factor

This commit is contained in:
dscyrescotti
2024-06-25 11:38:06 +07:00
parent ad802b3f85
commit 862796d3ce

View File

@@ -83,7 +83,7 @@ struct SolidPointStrokeGenerator: StrokeGenerator {
let factor: CGFloat let factor: CGFloat
switch configuration.granularity { switch configuration.granularity {
case .automatic: case .automatic:
factor = min(5, 1 / (stroke.thickness * 1 / 50)) factor = min(10, 1 / (stroke.thickness * 1 / 50))
case .fixed: case .fixed:
factor = 1 / (stroke.thickness * stroke.penStyle.stepRate) factor = 1 / (stroke.thickness * stroke.penStyle.stepRate)
case .none: case .none: