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

q5-webgpu: strokeMode and better strokes #66

Open
quinton-ashley opened this issue Jul 25, 2024 · 0 comments
Open

q5-webgpu: strokeMode and better strokes #66

quinton-ashley opened this issue Jul 25, 2024 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@quinton-ashley
Copy link
Collaborator

quinton-ashley commented Jul 25, 2024

Currently q5-webgpu has basic strokes with corner joins on rects and rounded joins on custom shapes.

I'm not interested in working on a more advanced stroke method, but if someone from the q5 community wants to, here's some more info.

The 2D canvas API provides a lot of high level functionality, including drawing strokes, but implementing strokes in WebGPU won't be so easy. Strokes can't simply by drawn as lines, they need to be drawn as shapes to account for varying stroke widths, join modes, and curves.

@Tezumie found this interesting paper "GPU-friendly stroke expansion" by Raph Levien and Arman Uguray.
https://arxiv.org/pdf/2405.00127

These ideas are implemented in a library called Spiro.
https://levien.com/spiro/

It would be nice to have a high quality, high performance stroke implementation in q5-webgpu.

@quinton-ashley quinton-ashley added the help wanted Extra attention is needed label Jul 25, 2024
@quinton-ashley quinton-ashley added this to the WebGPU milestone Jul 25, 2024
@quinton-ashley quinton-ashley moved this to Todo in q5 Sep 25, 2024
@quinton-ashley quinton-ashley changed the title q5-webgpu: strokes q5-webgpu: strokeMode and better strokes Oct 11, 2024
@quinton-ashley quinton-ashley removed this from the WebGPU milestone Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
Status: Maybe
Development

No branches or pull requests

1 participant