Skip to content

Glowing brush is not smooth for zig-zag line #132

@codewithhera

Description

@codewithhera

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
    }

Screenshot_2022-07-03_at_1_35_57_PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions