feat: update stroke generator factor

This commit is contained in:
dscyrescotti
2024-05-09 22:44:58 +07:00
parent 1d91da8445
commit 335d7e52e9

View File

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