From 335d7e52e9d1177b03e933fbf8c33f9f9377650f Mon Sep 17 00:00:00 2001 From: dscyrescotti Date: Thu, 9 May 2024 22:44:58 +0700 Subject: [PATCH] feat: update stroke generator factor --- .../Stroke/Generators/SolidPointStrokeGenerator.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Memola/Canvas/Geometries/Stroke/Generators/SolidPointStrokeGenerator.swift b/Memola/Canvas/Geometries/Stroke/Generators/SolidPointStrokeGenerator.swift index f2fde69..d1a31a7 100644 --- a/Memola/Canvas/Geometries/Stroke/Generators/SolidPointStrokeGenerator.swift +++ b/Memola/Canvas/Geometries/Stroke/Generators/SolidPointStrokeGenerator.swift @@ -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: