-
Notifications
You must be signed in to change notification settings - Fork 218
Open
Description
When drawing a zig-zag line using glowing brush, it was not smooth enough.
If I modify "makeLine" method like this way in "GlowingBrush.swift", it will give a smooth glowing line
public override func makeLine(from: CGPoint, to: CGPoint, force: CGFloat? = nil, uniqueColor: Bool = false) -> [MLLine] {
let shadowLines = super.makeLine(from: from, to: to, force: force)
var coreLines: [MLLine] = []
let lines = subBrush.makeLine(from: from, to: to, force: force, uniqueColor: true)
pendingCoreLines.append(contentsOf: lines)
coreLines.append(contentsOf: pendingCoreLines)
return shadowLines + coreLines
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
