mirror of
https://github.com/dscyrescotti/Memola.git
synced 2026-07-09 14:25:18 +02:00
feat: update stroke generator factor
This commit is contained in:
@@ -116,7 +116,7 @@ struct SolidPointStrokeGenerator: StrokeGenerator {
|
|||||||
let factor: CGFloat
|
let factor: CGFloat
|
||||||
switch configuration.granularity {
|
switch configuration.granularity {
|
||||||
case .automatic:
|
case .automatic:
|
||||||
factor = min(3.5, 1 / (stroke.thickness * 1 / 10))
|
factor = min(5, 1 / (stroke.thickness * 10 / 500))
|
||||||
case .fixed:
|
case .fixed:
|
||||||
factor = 1 / (stroke.thickness * stroke.penStyle.anyPenStyle.stepRate)
|
factor = 1 / (stroke.thickness * stroke.penStyle.anyPenStyle.stepRate)
|
||||||
case .none:
|
case .none:
|
||||||
|
|||||||
Reference in New Issue
Block a user