mirror of
https://github.com/dscyrescotti/Memola.git
synced 2026-04-24 09:38:33 +02:00
feat: update stroke generation factor
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user