Skip to content

BezPath 0-length stroke #1055

@DasLixou

Description

@DasLixou

Hello! I want to make a scribble / writing app and am using the new vello sparse strip thing with the fast_stroke kurbo branch patched in.
Now, I want to present a "dot" when the user started writing even without moving, so I create a BezPath with [MoveTo(p), LineTo(p)] but that doesn't show anything. Even with LineTo(p + f64::EPSILON) it doesn't work, only with + 0.001 which makes it seem ugly when I don't go to the bottom right with the stroke but for example the top left, as the start is now wrong for a short bit.
Can we please get an option to allow 0-length paths?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions