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

widget::canvas::path::Builder::arc does not correctly sweep clockwise in all cases as documented #2669

Open
4 tasks done
letssolvesolvedproblems opened this issue Nov 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@letssolvesolvedproblems

Is your issue REALLY a bug?

  • My issue is indeed a bug!
  • I am not crazy! I will not fill out this form just to ask a question or request a feature. Pinky promise.

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?

When calling the arc method on iced_graphics::geometry::path::builder::Builder and supplying a iced_graphics::geometry::path::arc::Arc constructed like:

Arc {
    center: Point::new(0.0, 0.0),
    radius: 0.5,
    start_angle: Radians(0.0),
    end_angle: Radians(std::f32::consts::PI)
}

and another constructed like:

Arc {
    center: Point::new(0.0, 0.0),
    radius: 0.5,
    start_angle: Radians(std::f32::consts::PI),
    end_angle: Radians(0.0)
}

the same arc is drawn on the canvas. See below images, note that one center point has been moved so you can see it.
second_arc
first_arc

What is the expected behavior?

I would expect the sweep of the arc to go clockwise from start_angle to end_angle in both cases.

Version

master

Operating System

Windows

Do you have any log output?

No response

@letssolvesolvedproblems letssolvesolvedproblems added the bug Something isn't working label Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant