Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pen presure to brush #180

Merged
merged 2 commits into from
Oct 21, 2020
Merged

Conversation

Giwayume
Copy link
Contributor

@Giwayume Giwayume commented Oct 21, 2020

I had to change more than expected,

  • Added pointerdown and pointermove events to take a pressure reading
  • Existing code had a bug where it generated a "point" at the start of every line after the 1st line, so I forced a "null" data point after each mouseup so you can truly distinguish points from lines. This was important to fix because the pen pressure can cause lines to be much thinner than points, so it's noticeable.

@Giwayume
Copy link
Contributor Author

#179

@viliusle viliusle merged commit 46232e3 into viliusle:master Oct 21, 2020
@viliusle
Copy link
Owner

viliusle commented Dec 5, 2020

I updated brush tool, now it supports multi touch, so user can draw with many fingers at once.

Can you please check if pressure is not broken?

@Giwayume
Copy link
Contributor Author

Giwayume commented Dec 5, 2020

pressure still works fine

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