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

Using Path2D for stroke #334

Open
martinRenou opened this issue May 25, 2023 Discussed in #333 · 0 comments
Open

Using Path2D for stroke #334

martinRenou opened this issue May 25, 2023 Discussed in #333 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@martinRenou
Copy link
Collaborator

Discussed in https://github.com/martinRenou/ipycanvas/discussions/333

Originally posted by BarbaraWebb May 24, 2023
It seems like you can use Path2D as a shortcut to create paths only if you want to then draw it as a filled path, but not as a stroke? canvas.fill will take a path as an argument but canvas.stroke will not. If I want to draw a complex shape that shows only as a line drawing (and repeat that shape several times in different places) what is the best way to do it?

@martinRenou martinRenou added enhancement New feature or request good first issue Good for newcomers labels May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant