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

Possibility for variable-width strokes? #28

Open
KTRosenberg opened this issue May 1, 2023 · 0 comments
Open

Possibility for variable-width strokes? #28

KTRosenberg opened this issue May 1, 2023 · 0 comments

Comments

@KTRosenberg
Copy link

KTRosenberg commented May 1, 2023

Would it be at all possible to extend the line rendering to support per-point stroke widths? I'd like to be able to draw using the Apple pencil and modulate the thickness of the curves continuously. Currently, nanovg applies a single width per-stroke, with no transitions possible. (The same goes for color.)

How might I be able to write this extension myself, since I realize it's not supported in the original?

@KTRosenberg KTRosenberg changed the title Variable-width strokes Possibility for variable-width strokes? May 1, 2023
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

1 participant