Skip to content

Add move_to method for Path #68

@charlesneimog

Description

@charlesneimog

Hi @agraef and @timothyschoen , happy end of 2024! 😄

I'm working on developing a library for handling simple scores using pdlua. https://github.com/charlesneimog/pd-score

I’m rendering music glyphs using the Bravura font and the d attribute for SVG path data (you can check out more details here: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d).

It works well, but I’m missing the move_to function on pdlua api. It’s essentially meant to move the cursor to a new position without drawing anything. I’ve tried implementing it myself using c, but I don't know anything about Tk, plugdata or PurrData.

For now, I’m using line_to, which almost works on low resolution but not or higher.

Here’s an example of what I’m seeing:

Pure Data

PurrData

Plug Data

Obs.: Create a new Path() does not work because the fill becomes wrong!

I believe this would be amazing not just for score, but would be possible to draw anything from svg.

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