Skip to content

Match the Behavior of perfect-freehand#1

Open
CJendantix wants to merge 4 commits into
ducflair:mainfrom
CJendantix:main
Open

Match the Behavior of perfect-freehand#1
CJendantix wants to merge 4 commits into
ducflair:mainfrom
CJendantix:main

Conversation

@CJendantix
Copy link
Copy Markdown

@CJendantix CJendantix commented Jan 22, 2026

I was planning on using this library, but noticed that its output was quite strange and did not match the output of the original ts library. This is my attempt at resolving that.

Changes

  • Visually matches the output of perfect-freehand
  • Updates to Rust 2024, and resolves all clippy warnings
  • Improves documentation
  • Slightly changes the taper api to make more sense to a newcomer (in my opinion).
  • Updates the crate version to reflect the breaking api/behavior change

@dlight
Copy link
Copy Markdown

dlight commented May 6, 2026

Just wanted to note that some of those issues were fixed in this fork of freedraw, the perfect_freehand crate. (Note, unfortunately there is nothing in there to signal that is a fork)

I mean, at least two issues isn't fixed in there. When handling of negative thinning, and how the first pressure is generated for input without pressure, this PR is closer to upstream perfect-freehand than the perfect_freehand crate.

So maybe @CJendantix, publish this as another crate on crates.io?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants