Open HeraBlockchain opened 2 years ago
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 }
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