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

arc_to does not act like CanvasRenderingContext2D.arcTo #1357

Closed
2 tasks done
ThatsNoMoon opened this issue Jun 3, 2022 · 0 comments · Fixed by #1358
Closed
2 tasks done

arc_to does not act like CanvasRenderingContext2D.arcTo #1357

ThatsNoMoon opened this issue Jun 3, 2022 · 0 comments · Fixed by #1358
Labels
bug Something isn't working canvas widget

Comments

@ThatsNoMoon
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues.

Is this issue related to iced?

  • My hardware is compatible and my graphics drivers are up-to-date.

What happened?

The native implementation of path::Builder::arc_to simply draws one straight line to the first point provided and then draws an arc to the endpoint.

Any usage of arc_to will reproduce this behavior.

What is the expected behavior?

I expected iced_graphics's arc_to to act like CanvasRenderingContext2D.arcTo, which takes a control point and draws two straight lines between the starting point and the ending point connected by an arc,

Version

0.4

Operative System

Windows

Do you have any log output?

No response

@ThatsNoMoon ThatsNoMoon added the bug Something isn't working label Jun 3, 2022
@hecrj hecrj mentioned this issue Jun 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working canvas widget
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants