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

render svg into graphics canvas #880

Open
aentity opened this issue May 15, 2021 · 3 comments
Open

render svg into graphics canvas #880

aentity opened this issue May 15, 2021 · 3 comments
Labels
feature New feature or request rendering svg

Comments

@aentity
Copy link
Contributor

aentity commented May 15, 2021

Hi i want to render svg i have into graphics canvas, is it possible?

For example, i use graphics to draw things, but occasionally i want to draw/render an svg to somewhere in this canvas.

I can't see how to do it, is there help or example for such thing? or do we need new api?

@hecrj hecrj added the feature New feature or request label May 27, 2021
@xd009642
Copy link

Just wondering if there's any progress on this or a solution on how to do it in iced currently?

@aquirdTurtle
Copy link

Also came up for me recently. I'll give the change in the referenced #881 a try. For example I have a little chess-related app and want to draw a chessboard and then place chess piece SVGs on top of the board. Also related, issue #30; if that were implemented maybe I wouldn't care as much, although I will mention that svg support seems very much in the spirit of a canvas object. Things to prevent the user from having to draw everything manually.

@xd009642
Copy link

@aquirdTurtle what a coincidence a chess-related app is what I'm working on. If you want something that practically works I've had the most luck with Tauri and leaning on JS for the UI via react-chessboard. I say most luck because the javascript/rust workflow isn't the most ergonomic but at least the javascript ecosystem has a lot more hands working on it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request rendering svg
Projects
None yet
Development

No branches or pull requests

4 participants