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

Line segments with different pressure don't have a fluent transition if drawn fast #8

Open
retat opened this issue Oct 13, 2020 · 2 comments

Comments

@retat
Copy link

retat commented Oct 13, 2020

photo5199765031384887068

I used an iPad pro on the provided demo page for the effect in the screenshot. Is there a possible solution?

@arcatdmz
Copy link
Member

Hi @retat, thanks for your feedback!

The ladder-like transition is caused because each stroke is just a series of line segments with varying widths. So, there is no fundamental fix.

Meanwhile, a stroke is simplified when you finish drawing a stroke, and how it gets simplified can be tweaked by changing the parameter: you could increase the value of PSBrush.pressureCoeff to put more value on pressure changes than {x, y} changes.

@retat
Copy link
Author

retat commented Oct 15, 2020

Thanks for the answer. I tried tweaking the pressureCoeff value but as far as I can see it doesn't make a difference. Is there a specific value that I should try?

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