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

Apple Pencil #5

Open
robertherber opened this issue Jun 13, 2022 · 5 comments
Open

Apple Pencil #5

robertherber opened this issue Jun 13, 2022 · 5 comments

Comments

@robertherber
Copy link

robertherber commented Jun 13, 2022

Would it be possible to add some basic Apple Pencil support? I'm thinking mainly about detecting whether an Apple Pencil is used. Would be really cool if it could also use the adaptive pressure from the Pencil - but that's a bonus.. :)

@wobsoriano
Copy link
Owner

It uses https://github.com/steveruizok/perfect-freehand so I believe adaptive pressure from pencil is supported :)

@robertherber
Copy link
Author

@wobsoriano I might be missing something, but I don’t think that’s what perfect-freehand does. It provides a way to draw nice lines as well as simulate pressure, but to actually capture the pressure data from an Apple Pencil?

@wobsoriano
Copy link
Owner

Do you mean "detecting whether an apple pencil is used?" ?

@robertherber
Copy link
Author

robertherber commented Aug 4, 2022

I’m thinking two main things:

  • detecting whether a pencil is used (a simple yes/no)
  • use the actual pressure the user applies with the pencil (coming through the Apple APIs, and not just simulating based on timing as is the default from my understanding)

And with that in place it would probably be fairly easy to support “tool switching” to for example switch between two colors or between eraser and painting to create a fully native experience.. 🙂

@wobsoriano wobsoriano reopened this Aug 4, 2022
@wobsoriano
Copy link
Owner

That's interesting. I'm keeping this open til I come up with an idea of how to do it.

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

No branches or pull requests

2 participants